diff options
author | Eugene Sandulenko | 2019-07-03 00:33:43 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:08 +0200 |
commit | 662f874c5476ecd5b2cd4df55778acb0c32e9350 (patch) | |
tree | 9b275eeef83784e85d9787789d9b5432306d6045 | |
parent | 41c1353edc7800af5bec95c082e594429b28301e (diff) | |
download | scummvm-rg350-662f874c5476ecd5b2cd4df55778acb0c32e9350.tar.gz scummvm-rg350-662f874c5476ecd5b2cd4df55778acb0c32e9350.tar.bz2 scummvm-rg350-662f874c5476ecd5b2cd4df55778acb0c32e9350.zip |
HDB: Fix tile animations
-rw-r--r-- | engines/hdb/gfx.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp index c347d64ef1..3dfe6445fd 100644 --- a/engines/hdb/gfx.cpp +++ b/engines/hdb/gfx.cpp @@ -88,6 +88,7 @@ bool Gfx::init() { // ELSE IF we're in an anim group and have just reached the end if (!strncmp(_tLookupArray[index].filename, search, strlen(search)) && found == -1) { found = index; + memset(search, 0, sizeof(search)); strncpy(search, _tLookupArray[index].filename, strlen(_tLookupArray[index].filename) - 2); } else if (!strncmp(_tLookupArray[index].filename, search, strlen(search)) && found >= 0) _tLookupArray[index - 1].animIndex = index; |