diff options
Diffstat (limited to 'src/KingSystem/Event/evtOrderParam.cpp')
| -rw-r--r-- | src/KingSystem/Event/evtOrderParam.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/KingSystem/Event/evtOrderParam.cpp b/src/KingSystem/Event/evtOrderParam.cpp index 5ff22d1d..5d174cb4 100644 --- a/src/KingSystem/Event/evtOrderParam.cpp +++ b/src/KingSystem/Event/evtOrderParam.cpp @@ -28,10 +28,9 @@ bool OrderParam::initialize(s32 entry_count) { if (!mEntries.tryAllocBuffer(entry_count, mHeap)) return false; - for (s32 i = 0; i < entry_count; i++) { - clearEntry(&mEntries[i]); // no matter what I do, the compiler unrolls the first 2 - // iterations out of the loop - } + for (u32 i = 0; i < u32(entry_count); i++) + clearEntry(&mEntries[i]); + mEntryCount = 0; mInitialized = true; return true; |
