1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 11:00:01 +00:00

Fix bug in templates.h, again.

This commit is contained in:
_AG 2019-06-20 11:26:15 +02:00
parent ef8e9e7f1b
commit 30d52079a4

View file

@ -82,8 +82,8 @@ public:
return m_flags[i].free ? nil : (T*)&m_entries[i]; return m_flags[i].free ? nil : (T*)&m_entries[i];
} }
T *GetAt(int handle){ T *GetAt(int handle){
return m_flags[handle>>8].u == handle & 0xFF ? return m_flags[handle>>8].u == (handle & 0xFF) ?
nil : (T*)&m_entries[handle >> 8]; (T*)&m_entries[handle >> 8] : nil;
} }
int GetIndex(T *entry){ int GetIndex(T *entry){
int i = GetJustIndex(entry); int i = GetJustIndex(entry);