diff options
| author | Léo Lam <leo@leolam.fr> | 2021-02-07 15:09:13 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2021-02-07 16:09:02 +0100 |
| commit | 6699c1fb38549d66fea50ab3af1ca327ff32ca06 (patch) | |
| tree | ba0697617a3fe9596b40e409ec7ccbd6f8e23406 /src/KingSystem/Event/evtOrderParam.cpp | |
| parent | 37d4a0695cb941078f00d0fd6958ce6fa1b51616 (diff) | |
ksys/evt: Fix matching issue in OrderParam::initialize
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; |
