diff options
author | aap <aap@papnet.eu> | 2019-06-20 11:28:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-20 11:28:04 +0200 |
commit | 109cde810c7b6115f864cf3e5005111c17284ab9 (patch) | |
tree | 052fc5a6c687983435f8d0b871b2d9abff31f747 /src/templates.h | |
parent | finally finished CVehicleModelInfo (diff) | |
parent | Fix bug in templates.h, again. (diff) | |
download | re3-109cde810c7b6115f864cf3e5005111c17284ab9.tar re3-109cde810c7b6115f864cf3e5005111c17284ab9.tar.gz re3-109cde810c7b6115f864cf3e5005111c17284ab9.tar.bz2 re3-109cde810c7b6115f864cf3e5005111c17284ab9.tar.lz re3-109cde810c7b6115f864cf3e5005111c17284ab9.tar.xz re3-109cde810c7b6115f864cf3e5005111c17284ab9.tar.zst re3-109cde810c7b6115f864cf3e5005111c17284ab9.zip |
Diffstat (limited to 'src/templates.h')
-rw-r--r-- | src/templates.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/templates.h b/src/templates.h index 3ac0bc90..65f92a2a 100644 --- a/src/templates.h +++ b/src/templates.h @@ -82,8 +82,8 @@ public: return m_flags[i].free ? nil : (T*)&m_entries[i]; } T *GetAt(int handle){ - return m_flags[handle>>8].u == handle & 0xFF ? - (T*)&m_entries[handle>>8] : nil; + return m_flags[handle>>8].u == (handle & 0xFF) ? + (T*)&m_entries[handle >> 8] : nil; } int GetIndex(T *entry){ int i = GetJustIndex(entry); |