summaryrefslogtreecommitdiffstats
path: root/src/templates.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/templates.h4
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);