From 1314567c1384736a04b612c3b1a9bc1442637efb Mon Sep 17 00:00:00 2001 From: jacob1 Date: Fri, 15 Aug 2014 20:19:09 -0400 Subject: [PATCH] fix DRAY --- src/simulation/elements/DRAY.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/simulation/elements/DRAY.cpp b/src/simulation/elements/DRAY.cpp index 788e269422..96d8d8a8c5 100644 --- a/src/simulation/elements/DRAY.cpp +++ b/src/simulation/elements/DRAY.cpp @@ -100,8 +100,10 @@ int Element_DRAY::update(UPDATE_FUNC_ARGS) sim->delete_part(xCopyTo, yCopyTo); if (type == PT_SPRK) //hack p = sim->create_part(-1, xCopyTo, yCopyTo, PT_METL); - else + else if (type) p = sim->create_part(-1, xCopyTo, yCopyTo, type); + else + continue; if (p >= 0) { if (type == PT_SPRK)