From 0d432c32ef1ceef629899debc0f837610ae43c02 Mon Sep 17 00:00:00 2001 From: John Alanbrook Date: Tue, 30 May 2023 12:30:56 +0000 Subject: [PATCH] change --- source/scripts/engine.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/scripts/engine.js b/source/scripts/engine.js index 77abfb1..27a76d4 100644 --- a/source/scripts/engine.js +++ b/source/scripts/engine.js @@ -1505,6 +1505,10 @@ var gameobject = { stop() {}, kill() { + if (this.body === -1) { + Log.warn(`Object is already dead!`); + return; + } Register.endofloop(() => { cmd(2, this.body); delete Game.objects[this.body];