diff --git a/script/events.js b/script/events.js index 355c70f..480bea7 100644 --- a/script/events.js +++ b/script/events.js @@ -42,6 +42,11 @@ var Events = { Events.activeScene = name; var scene = Events.activeEvent().scenes[name]; + // onLoad + if(scene.onLoad) { + scene.onLoad(); + } + // Notify the scene change if(scene.notification) { Notifications.notify(null, scene.notification); @@ -52,11 +57,6 @@ var Events = { $SM.addM('stores', scene.reward); } - // onLoad - if(scene.onLoad) { - scene.onLoad(); - } - $('#description', Events.eventPanel()).empty(); $('#buttons', Events.eventPanel()).empty(); if(scene.combat) {