Fixed compilation for now.

svn-id: r36179
This commit is contained in:
Johannes Schickel 2009-02-01 19:53:12 +00:00
parent 784c99b3da
commit dda109ead3
3 changed files with 8 additions and 4 deletions

View file

@ -149,6 +149,10 @@ TIM *TIMInterpreter::load(const char *filename, const Common::Array<const TIMOpc
if (!_vm->resource()->exists(filename))
return 0;
for (int i = 0; i < ARRAYSIZE(_animations); ++i)
delete _animations[i].wsa;
memset(_animations, 0, sizeof(_animations));
ScriptFileParser file(filename, _vm->resource());
if (!file)
error("Couldn't open TIM file '%s'", filename);