More correct Anim destructor

svn-id: r14410
This commit is contained in:
Eugene Sandulenko 2004-08-01 07:32:27 +00:00
parent d4c84fefde
commit e20d53a869

View File

@ -58,7 +58,8 @@ Anim::~Anim(void) {
uint16 i;
for (i = 0; i < R_MAX_ANIMATIONS; i++) {
free(_anim_tbl[i]);
if (_anim_tbl[i])
free(_anim_tbl[i]);
}
_initialized = false;