delete type fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3690 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-11-20 21:23:45 +00:00
parent 55c1e1b5cb
commit 0e25e544e3
+1 -1
View File
@@ -203,7 +203,7 @@ void pruneundos(int maxremain) // bound memory
loopvrev(undos)
{
t += undos[i]->xs*undos[i]->ys*sizeof(sqr);
if(t>maxremain) delete undos.remove(i);
if(t>maxremain) delete[] (uchar *)undos.remove(i);
}
}