aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v5.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script_v5.cpp')
-rw-r--r--scumm/script_v5.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp
index 11b56a4040..b2c3cf1f99 100644
--- a/scumm/script_v5.cpp
+++ b/scumm/script_v5.cpp
@@ -1722,7 +1722,7 @@ void Scumm_v5::o5_roomOps() {
case 10: /* ? */
a = getVarOrDirectWord(0x80);
if (a) {
- _switchRoomEffect = (byte)a;
+ _switchRoomEffect = (byte)(a&0xFF);
_switchRoomEffect2 = (byte)(a >> 8);
} else {
fadeIn(_newEffect);