From 36efb4864412537ff4a48a99337f220d601acc70 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 4 May 2013 16:40:04 -0400 Subject: possible piston bug fix for save 1176828 diff --git a/src/simulation/elements/PSTN.cpp b/src/simulation/elements/PSTN.cpp index 4da1b73..35a470d 100644 --- a/src/simulation/elements/PSTN.cpp +++ b/src/simulation/elements/PSTN.cpp @@ -185,7 +185,7 @@ int Element_PSTN::CanMoveStack(Simulation * sim, int stackX, int stackY, int dir if(spaces >= amount) break; } else { - if(currentPos < maxSize && !retract) + if(spaces < maxSize && !retract) tempParts[currentPos++] = r>>8; else return spaces; -- cgit v0.9.2-21-gd62e