- Fixed mismatched alloc/dealloc in FTextureManager.

The 'TextureFrames', which is attached to all the 'mAnimatedDoors', were deleted with one-pointer 'delete' and they were allocated with 'new[]'.
This commit is contained in:
Edoardo Prezioso 2013-07-30 13:36:56 +02:00
parent 27de9f45af
commit 7e21eafc2f

View file

@ -127,7 +127,7 @@ void FTextureManager::DeleteAll()
{
if (mAnimatedDoors[i].TextureFrames != NULL)
{
delete mAnimatedDoors[i].TextureFrames;
delete[] mAnimatedDoors[i].TextureFrames;
mAnimatedDoors[i].TextureFrames = NULL;
}
}