diff options
Diffstat (limited to 'src/T2DLL/T2ToolDef.cpp')
-rw-r--r-- | src/T2DLL/T2ToolDef.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |