Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix bug in templates.h, again.
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+2
−2
src/templates.h
There are no files selected for viewing
|
|
@@ -82,8 +82,8 @@ class CPool |
|
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);
|
|
|
|