SCI: Fix kSetPort return value

SSCI doesn't return zero; it doesn't return anything. This shouldn't
affect any games since no scripts should depend on a non-existent
return value, but this discrepancy came up while investigating a
fan script that accidentally relies on this.
This commit is contained in:
sluicebox 2021-10-13 19:15:47 -05:00
parent f3b04519a6
commit 04cdd7af00

View File

@ -1119,7 +1119,7 @@ reg_t kSetPort(EngineState *s, int argc, reg_t *argv) {
error("SetPort was called with %d parameters", argc);
break;
}
return NULL_REG;
return s->r_acc;
}
reg_t kDrawCel(EngineState *s, int argc, reg_t *argv) {