Skip to content

Commit

Permalink
HOPKINS: Bugfix to properly initialise Cache array.
Browse files Browse the repository at this point in the history
This corrects 'foreground' sprite drawing that draws over the player.
  • Loading branch information
dreammaster committed Oct 25, 2012
1 parent a0b5401 commit 5445866
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/hopkins/objects.cpp
Expand Up @@ -4798,7 +4798,7 @@ void ObjectsManager::INILINK(const Common::String &file) {
_vm->_globals.Cache[v11].field4 = v10;
_vm->_globals.Cache[v11].field12 = 1;

if (_vm->_globals.CACHE_BANQUE[1]) {
if (!_vm->_globals.CACHE_BANQUE[1]) {
_vm->_globals.Cache[v40].fieldA = 0;
} else {
v12 = v8;
Expand All @@ -4813,6 +4813,7 @@ void ObjectsManager::INILINK(const Common::String &file) {
if (!_vm->_globals.Cache[v40].field0 && !_vm->_globals.Cache[v40].field4
&& !_vm->_globals.Cache[v40].field2)
_vm->_globals.Cache[v40].fieldA = 0;

v36 += 5;
++v40;
} while (v40 <= 21);
Expand Down

0 comments on commit 5445866

Please sign in to comment.