diff options
| author | Aetias <aetias@outlook.com> | 2024-02-18 13:24:49 +0100 |
|---|---|---|
| committer | Aetias <aetias@outlook.com> | 2024-02-18 13:24:49 +0100 |
| commit | f3d0b29b42954abe62eaf0a13259f3ebc6d8aa9c (patch) | |
| tree | 6b1ac43180753699355c3e88418734098f0383fe /include/global.h | |
| parent | 8f674d7f875e69e47d19623334881da80d399b46 (diff) | |
Decomp `ItemManager::RemoveItem`
Diffstat (limited to 'include/global.h')
| -rw-r--r-- | include/global.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/global.h b/include/global.h index 28d2c481..53232a65 100644 --- a/include/global.h +++ b/include/global.h @@ -4,7 +4,8 @@ #define NULL 0 #define GET_FLAG(arr, pos) (((1 << ((pos) & 0x1f)) & (arr)[(pos) >> 5]) != 0) -#define SET_FLAG(arr, pos) ((arr)[(pos) >> 5] |= 1 << ((pos) & 0x1f)) +#define SET_FLAG(arr, pos) ((arr)[((u32(pos))) >> 5] |= 1 << ((pos) & 0x1f)) +#define RESET_FLAG(arr, pos) ((arr)[((u32)(pos)) >> 5] &= ~(1 << ((pos) & 0x1f))) #ifdef NONMATCHING #define NONMATCH |
