[Scummvm-cvs-logs] scummvm master -> b7d4ece827c45408b6fc04c5d44ea2046df4b340
Strangerke
Strangerke at scummvm.org
Sun Apr 21 00:28:12 CEST 2013
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
b7d4ece827 HOPKINS: Add extra sanity check CID 1004008
Commit: b7d4ece827c45408b6fc04c5d44ea2046df4b340
https://github.com/scummvm/scummvm/commit/b7d4ece827c45408b6fc04c5d44ea2046df4b340
Author: Strangerke (strangerke at scummvm.org)
Date: 2013-04-20T15:26:41-07:00
Commit Message:
HOPKINS: Add extra sanity check CID 1004008
Changed paths:
engines/hopkins/objects.cpp
diff --git a/engines/hopkins/objects.cpp b/engines/hopkins/objects.cpp
index f139ee5..6887b29 100644
--- a/engines/hopkins/objects.cpp
+++ b/engines/hopkins/objects.cpp
@@ -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;
@@ -3102,6 +3103,7 @@ void ObjectsManager::setBobAnimation(int idx) {
* Stop Hopkins animation
*/
void ObjectsManager::stopBobAnimation(int idx) {
+ assert (idx < 36);
_bob[idx]._disabledAnimationFl = true;
}
More information about the Scummvm-git-logs
mailing list