1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-12 18:30:34 +00:00

cellcount counted correctly

This commit is contained in:
Zeno Rogue 2019-01-18 21:04:39 +01:00
parent b0b783b581
commit 3317e95bfb

View File

@ -432,7 +432,8 @@ template<class T> T* tailored_alloc(int degree) {
return result; return result;
} }
void inline tailored_delete(void *x) { template<class T> void tailored_delete(T* x) {
x->~T();
delete[] ((char*) (x)); delete[] ((char*) (x));
} }