summaryrefslogtreecommitdiff
path: root/src/simulation/elements/PSTN.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-05-04 20:40:04 (GMT)
committer jacob1 <jfu614@gmail.com>2013-05-04 20:40:04 (GMT)
commit36efb4864412537ff4a48a99337f220d601acc70 (patch)
treec75ccca512faebae840bf9c51d629aa2cd4cfdb3 /src/simulation/elements/PSTN.cpp
parentb2153b5af419ec3ca4fa37c59ba70a736a457206 (diff)
downloadpowder-36efb4864412537ff4a48a99337f220d601acc70.zip
powder-36efb4864412537ff4a48a99337f220d601acc70.tar.gz
possible piston bug fix for save 1176828
Diffstat (limited to 'src/simulation/elements/PSTN.cpp')
-rw-r--r--src/simulation/elements/PSTN.cpp2
1 files changed, 1 insertions, 1 deletions
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;