Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fix bug in templates.h, again.
  • Loading branch information
gennariarmando committed Jun 20, 2019
1 parent ef8e9e7 commit 30d52079a45b7177fad00580f31ac3780c5a23b5
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/templates.h
@@ -82,8 +82,8 @@ class CPool
return m_flags[i].free ? nil : (T*)&m_entries[i];
}
T *GetAt(int handle){
return m_flags[handle>>8].u == handle & 0xFF ?
nil : (T*)&m_entries[handle >> 8];
return m_flags[handle>>8].u == (handle & 0xFF) ?
(T*)&m_entries[handle >> 8] : nil;
}
int GetIndex(T *entry){
int i = GetJustIndex(entry);

0 comments on commit 30d5207

Please sign in to comment.