Skip to content

Commit

Permalink
fix DRAY
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Aug 16, 2014
1 parent 08dcc19 commit 1314567
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/simulation/elements/DRAY.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 1314567

Please sign in to comment.