From 36efb4864412537ff4a48a99337f220d601acc70 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 4 May 2013 16:40:04 -0400 Subject: [PATCH] possible piston bug fix for save 1176828 --- src/simulation/elements/PSTN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/elements/PSTN.cpp b/src/simulation/elements/PSTN.cpp index 4da1b732d..35a470d92 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;