repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 8bdb8c85566ac09c6036e88ffc5d34fd1bce8392:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 8bdb8c85566ac09c6036e88ffc5d34fd1bce8392
Author: James Baicoianu 
Date:   Wed Apr 1 11:08:14 2020 -0700

    Remove object from global room.objects array when removed

diff --git a/scripts/janusbase.js b/scripts/janusbase.js
index 173932eae50bc40bb67bae2088a662ba5626e45e..
index ..171c5ea19f2340f16a11046d44983cfe3704c3de 100644
--- a/scripts/janusbase.js
+++ b/scripts/janusbase.js
@@ -700,6 +700,9 @@ elation.require(['engine.things.generic', 'utils.template', 'janusweb.parts'], f
           realobj.stop();
           this.remove(realobj);
           this.updateScriptChildren();
+          if (room.objects[obj.js_id]) {
+            delete room.objects[obj.js_id];
+          }
         }
       }
     }

-----END OF PAGE-----