From c2efba6907fab934a04959b9bb644cf7141cc955 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sat, 1 Jul 2023 23:04:04 +0100 Subject: matched T2DLL as well as i can --- src/T2DLL/T2ToolDef.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/T2DLL/T2ToolDef.cpp') diff --git a/src/T2DLL/T2ToolDef.cpp b/src/T2DLL/T2ToolDef.cpp index 21b0a63..1a0d264 100644 --- a/src/T2DLL/T2ToolDef.cpp +++ b/src/T2DLL/T2ToolDef.cpp @@ -128,13 +128,13 @@ void T2ToolDef::GetName(CString& outStr, int id) { int T2ToolDef::GetOutMoney(unsigned int id) const { int money = 0; - if (id < 4) + if (id < kMaxValiation) money = mOutMoney[id]; return money; } void T2ToolDef::SetOutMoney(unsigned int id, int money) { - if (id < 4) + if (id < kMaxValiation) mOutMoney[id] = money; } -- cgit v1.2.3