mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 18:45:45 +00:00
Fix incorrect id check and potential out of bounds lookup
This commit is contained in:
parent
5e35454e43
commit
f50f69f07c
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ void SyncpointManager::FreeSyncpoint(u32 id) {
|
|||
}
|
||||
|
||||
bool SyncpointManager::IsSyncpointAllocated(u32 id) const {
|
||||
return (id <= SyncpointCount) && syncpoints[id].reserved;
|
||||
return (id < SyncpointCount) && syncpoints[id].reserved;
|
||||
}
|
||||
|
||||
bool SyncpointManager::HasSyncpointExpired(u32 id, u32 threshold) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue