mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-08-16 05:29:09 -04:00
Modify all (4) instances of Flags_GetRandomizerInf() returns that were u8 to s32 to avoid value overflow. (#4463)
This commit is contained in:
@@ -29,5 +29,5 @@ s32 Flags_GetEnv(PlayState* play, s16 flag) {
|
||||
s16 bit = flag % 16;
|
||||
s16 mask = 1 << bit;
|
||||
|
||||
return play->envFlags[index] & mask;
|
||||
return (play->envFlags[index] & mask) != 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user