diff options
Diffstat (limited to 'engines/kyra/staticres.cpp')
-rw-r--r-- | engines/kyra/staticres.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/kyra/staticres.cpp b/engines/kyra/staticres.cpp index b710222dd8..0cb2548408 100644 --- a/engines/kyra/staticres.cpp +++ b/engines/kyra/staticres.cpp @@ -306,7 +306,8 @@ const StaticResource::FileType *StaticResource::getFiletype(int type) { const void *StaticResource::getData(int id, int requesttype, int &size) { const void *ptr = 0; - int type = -1; + int type = -1; + size = 0; if (checkResList(id, type, ptr, size)) { if (type == requesttype) @@ -606,6 +607,8 @@ void KyraEngine::initStaticResource() { const Room *tempRoomList = _staticres->loadRoomTable(kRoomList, _roomTableSize); if (_roomTableSize > 0) { + printf("%d\n", _roomTableSize); + fflush(stdout); _roomTable = new Room[_roomTableSize]; assert(_roomTable); |