diff --git a/src/p_acs.cpp b/src/p_acs.cpp index e48e97e86..4150ee231 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -7296,7 +7296,7 @@ scriptwait: while (min <= max) { int mid = (min + max) / 2; - SDWORD caseval = pc[mid*2]; + SDWORD caseval = LittleLong(pc[mid*2]); if (caseval == STACK(1)) { pc = activeBehavior->Ofs2PC (LittleLong(pc[mid*2+1]));