aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v5.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp
index dc33592652..cacd4370bb 100644
--- a/scumm/script_v5.cpp
+++ b/scumm/script_v5.cpp
@@ -1019,9 +1019,16 @@ void Scumm_v5::o5_getActorY() {
void Scumm_v5::o5_getAnimCounter() {
getResultPos();
- int act = getVarOrDirectByte(0x80);
- Actor *a = derefActor(act, "o5_getAnimCounter");
- setResult(a->cost.animCounter);
+ // Loom uses this opcode in its load/save screen.
+ if (_gameId == GID_LOOM) {
+ byte a = getVarOrDirectByte(0x80);
+ warning("TODO: Loom saveLoad(%d)", a);
+ setResult(0);
+ } else {
+ int act = getVarOrDirectByte(0x80);
+ Actor *a = derefActor(act, "o5_getAnimCounter");
+ setResult(a->cost.animCounter);
+ }
}
void Scumm_v5::o5_getClosestObjActor() {