diff options
| author | jacob1 <jfu614@gmail.com> | 2013-05-04 20:40:04 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-05-04 20:40:04 (GMT) |
| commit | 36efb4864412537ff4a48a99337f220d601acc70 (patch) | |
| tree | c75ccca512faebae840bf9c51d629aa2cd4cfdb3 /src/simulation/elements/PSTN.cpp | |
| parent | b2153b5af419ec3ca4fa37c59ba70a736a457206 (diff) | |
| download | powder-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.cpp | 2 |
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; |
