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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user