summaryrefslogtreecommitdiff
path: root/src/templates.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates.h')
-rw-r--r--src/templates.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/templates.h b/src/templates.h
index 7ed7043e..ef2db33a 100644
--- a/src/templates.h
+++ b/src/templates.h
@@ -60,7 +60,7 @@ public:
return (T*)&m_entries[m_allocPtr];
}
T *New(int handle){
- T *entry = (T*)m_entries[handle>>8];
+ T *entry = (T*)&m_entries[handle>>8];
SetNotFreeAt(handle);
return entry;
}