summaryrefslogtreecommitdiff
path: root/src/KingSystem/Event/evtOrderParam.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-02-07 15:09:13 +0100
committerLéo Lam <leo@leolam.fr>2021-02-07 16:09:02 +0100
commit6699c1fb38549d66fea50ab3af1ca327ff32ca06 (patch)
treeba0697617a3fe9596b40e409ec7ccbd6f8e23406 /src/KingSystem/Event/evtOrderParam.cpp
parent37d4a0695cb941078f00d0fd6958ce6fa1b51616 (diff)
ksys/evt: Fix matching issue in OrderParam::initialize
Diffstat (limited to 'src/KingSystem/Event/evtOrderParam.cpp')
-rw-r--r--src/KingSystem/Event/evtOrderParam.cpp7
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;