aboutsummaryrefslogtreecommitdiff
path: root/sky
diff options
context:
space:
mode:
Diffstat (limited to 'sky')
-rw-r--r--sky/logic.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sky/logic.cpp b/sky/logic.cpp
index fbd0bf99db..871a534d3f 100644
--- a/sky/logic.cpp
+++ b/sky/logic.cpp
@@ -1238,11 +1238,11 @@ bool SkyLogic::fnGetTo(uint32 targetPlaceId, uint32 mode, uint32 c) {
bool SkyLogic::fnSetToStand(uint32 a, uint32 b, uint32 c) {
_compact->mood = 1; // high level stood still
- uint16 *p = *(uint16 **)SkyCompact::getCompactElem(_compact, C_STAND_UP
+ uint16 *standList = *(uint16 **)SkyCompact::getCompactElem(_compact, C_STAND_UP
+ _compact->extCompact->megaSet + _compact->extCompact->dir * 4);
- _compact->offset = *p++; // get frames offset
- _compact->grafixProg = p;
+ _compact->offset = *standList++; // get frames offset
+ _compact->grafixProg = standList;
_compact->logic = L_SIMPLE_MOD;
simpleAnim();
return false; // drop out of script