diff options
| author | jacksonmj <mj-pt@jacksonmj.co.uk> | 2013-09-08 17:14:12 (GMT) |
|---|---|---|
| committer | jacksonmj <mj-pt@jacksonmj.co.uk> | 2013-09-08 17:14:12 (GMT) |
| commit | 9eccad80b1c58f66cd1f23cefef922b55db5c39d (patch) | |
| tree | 947f2ccf37aee515fb7dfc01379ed34c43ad552f /src/simulation/Simulation.cpp | |
| parent | 2e52e209a66335cece95e58f98141e1ba30a14aa (diff) | |
| download | powder-9eccad80b1c58f66cd1f23cefef922b55db5c39d.zip powder-9eccad80b1c58f66cd1f23cefef922b55db5c39d.tar.gz | |
Missing breaks in readOPS
Causing some elements to be loaded incorrectly
Diffstat (limited to 'src/simulation/Simulation.cpp')
| -rw-r--r-- | src/simulation/Simulation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 92be515..b090841 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -2692,7 +2692,7 @@ int Simulation::create_part(int p, int x, int y, int tv) if (p==-2 && ((elements[type].Properties & PROP_DRAWONCTYPE) || type==PT_CRAY)) { parts[index].ctype = PT_SPRK; - return -1; + return index; } if (!(type == PT_INST || (elements[type].Properties&PROP_CONDUCTS)) || parts[index].life!=0) return -1; |
