mirror of
https://github.com/zeldaret/botw
synced 2026-06-05 11:17:48 -04:00
ksys/evt: Fix matching issue in OrderParam::initialize
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user