LAB: Fix map

Regression from be1fd471be.
This commit is contained in:
Willem Jan Palenstijn 2015-12-26 17:07:01 +01:00
parent 286cd81643
commit e4fbcabbc9

View file

@ -86,7 +86,7 @@ void LabEngine::loadMapData() {
_maxRooms = mapFile->readUint16LE();
_maps = new MapData[_maxRooms + 1]; // will be freed when the user exits the map
for (int i = 1; i <= _maxRooms; i++) {
for (int i = 0; i <= _maxRooms; i++) {
_maps[i]._x = mapFile->readUint16LE();
_maps[i]._y = mapFile->readUint16LE();
_maps[i]._pageNumber = mapFile->readUint16LE();