mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
Fixing a crash when loading a save made within the cult/bargon building (bug #2005965)
svn-id: r32895
This commit is contained in:
parent
59e672ef40
commit
56c6840ff7
@ -88,7 +88,7 @@ void Goblin_v2::placeObject(Gob_Object *objDesc, char animated,
|
|||||||
(_vm->_scenery->_animBottom - _vm->_scenery->_animTop) - (y + 1) / 2;
|
(_vm->_scenery->_animBottom - _vm->_scenery->_animTop) - (y + 1) / 2;
|
||||||
*obj->pPosX = x * _vm->_map->_tilesWidth;
|
*obj->pPosX = x * _vm->_map->_tilesWidth;
|
||||||
} else {
|
} else {
|
||||||
if (obj->goblinStates[state] != 0) {
|
if ((obj->goblinStates != 0) && (obj->goblinStates[state] != 0)) {
|
||||||
layer = obj->goblinStates[state][0].layer;
|
layer = obj->goblinStates[state][0].layer;
|
||||||
animation = obj->goblinStates[state][0].animation;
|
animation = obj->goblinStates[state][0].animation;
|
||||||
objAnim->state = state;
|
objAnim->state = state;
|
||||||
|
Loading…
Reference in New Issue
Block a user