From 533069dba8c0d4e374b92f508f77b3480f157ce7 Mon Sep 17 00:00:00 2001 From: Scott Erickson <sderickson@gmail.com> Date: Wed, 12 Feb 2014 09:55:19 -0800 Subject: [PATCH] Fixed a bug with the goals. --- app/lib/God.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/lib/God.coffee b/app/lib/God.coffee index 6a77d3a54..08fac3c92 100644 --- a/app/lib/God.coffee +++ b/app/lib/God.coffee @@ -106,7 +106,7 @@ module.exports = class God window.BOX2D_ENABLED = true @lastSerializedWorldFrames = serialized.frames - finishBeholdingWorld: (newWorld) -> + finishBeholdingWorld: (newWorld) => newWorld.findFirstChangedFrame @world @world = newWorld errorCount = (t for t in @world.thangs when t.errorsOut).length @@ -224,6 +224,7 @@ class Angel destroy: -> @dead = true + @finishBeholdingWorld = null @abort() testWorker: =>