diff options
author | Torbjörn Andersson | 2003-10-07 08:22:53 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-10-07 08:22:53 +0000 |
commit | f8400b1c4443f2872e57df9503f2d9e6943b7fd6 (patch) | |
tree | f93ab07b7e2941a6750fb5767934a96d3716af1f | |
parent | 29b646b30a967f1ec1028b4112fd106ed7b24143 (diff) | |
download | scummvm-rg350-f8400b1c4443f2872e57df9503f2d9e6943b7fd6.tar.gz scummvm-rg350-f8400b1c4443f2872e57df9503f2d9e6943b7fd6.tar.bz2 scummvm-rg350-f8400b1c4443f2872e57df9503f2d9e6943b7fd6.zip |
Fixed assert(). I think -- I don't even get this far before ScummVM crashes
on me. :-)
svn-id: r10660
-rw-r--r-- | queen/logic.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/queen/logic.cpp b/queen/logic.cpp index d1c87b7953..2310f31dfd 100644 --- a/queen/logic.cpp +++ b/queen/logic.cpp @@ -154,13 +154,12 @@ void Logic::initialise() { for (j = 1; j <= _areaMax[i]; j++) for (k = 0; k < 8; k++) { - assert(j < 12); + assert(j < 11); _area[i][j][k] = READ_BE_UINT16(ptr); ptr += 2; } - - } - + } + _objectBox = new Box[_numObjects + 1]; for (i = 1; i <= _numObjects; i++) { _objectBox[i].x1 = READ_BE_UINT16(ptr); @@ -172,7 +171,7 @@ void Logic::initialise() { _objectBox[i].y2 = READ_BE_UINT16(ptr); ptr += 2; } - + //Walk OFF Data _numWalkOffs = READ_BE_UINT16(ptr); |