diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index cd6762f2..f4fc3a1a 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -1006,7 +1006,7 @@ void scriptclass::run() obj.entities[i].rule = 7; obj.entities[i].tile = 6; } - else if (obj.entities[i].rule != 0) // Don't destroy player entity (rule 0) + else if (obj.getplayer() != i) // Don't destroy player entity { obj.entities[i].rule = 6; obj.entities[i].tile = 0;