Skip to content

Commit

Permalink
HOPKINS: Add extra sanity check CID 1004008
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Apr 20, 2013
1 parent 31e08b9 commit b7d4ece
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/hopkins/objects.cpp
Expand Up @@ -3087,6 +3087,7 @@ void ObjectsManager::setBobAnimDataIdx(int idx, int animIdx) {
* Set Hopkins animation
*/
void ObjectsManager::setBobAnimation(int idx) {
assert (idx < 36);
BobItem *bob = &_bob[idx];
if (!bob->_disabledAnimationFl)
return;
Expand All @@ -3102,6 +3103,7 @@ void ObjectsManager::setBobAnimation(int idx) {
* Stop Hopkins animation
*/
void ObjectsManager::stopBobAnimation(int idx) {
assert (idx < 36);
_bob[idx]._disabledAnimationFl = true;
}

Expand Down

0 comments on commit b7d4ece

Please sign in to comment.