diff options
Diffstat (limited to 'engines/hdb/gfx.cpp')
-rw-r--r-- | engines/hdb/gfx.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp index 8b2ac3dc62..b497b53b05 100644 --- a/engines/hdb/gfx.cpp +++ b/engines/hdb/gfx.cpp @@ -34,8 +34,11 @@ Gfx::Gfx() { _cosines = new Common::CosineTable(360); _systemInit = false; + _numTiles = 0; + memset(&_fadeInfo, 0, sizeof(_fadeInfo)); memset(&_snowInfo, 0, sizeof(_snowInfo)); + memset(&_skyTiles, 0, sizeof(_skyTiles)); } Gfx::~Gfx() { @@ -574,7 +577,7 @@ int Gfx::isSky(int index) { } for (int i = 0; i < kMaxSkies; i++) { - if(_skyTiles[i] == index) { + if (_skyTiles[i] == index) { return i + 1; // The skyTiles are indexed from 1. 0 => No Sky tile } } |