message: fix ScopeVar
diff: @@ -31,7 +31,7 @@ struct ScopeVar final {
  sym.set_instance(prev);
  }
  - const std::shared_ptr<phoenix::instance>& prev;
  + std::shared_ptr<phoenix::instance> prev;
  phoenix::symbol& sym;
  };
  @@ -442,7 +442,6 @@ void GameScript::initializeInstanceNpc(const std::shared_ptr<phoenix::c_npc>& np
  vm.call_function(daily_routine);
  }
  }
  -
  }
  void GameScript::initializeInstanceItem(const std::shared_ptr<phoenix::c_item>& item, size_t instance) {
  @@ -967,9 +966,11 @@ int GameScript::invokeState(Npc* npc, Npc* oth, Npc* vic, ScriptFn fn) {
  int ret = 0;
  if(sym!=nullptr && sym->rtype() == phoenix::datatype::integer) {
  ret = vm.call_function<int>(sym);
  - } else if (sym!=nullptr) {
  + }
  + else if(sym!=nullptr) {
  vm.call_function<void>(sym);
  }
  +
  if(vm.global_other()->is_instance_of<phoenix::c_npc>()){
  auto oth2 = reinterpret_cast<phoenix::c_npc*>(vm.global_other()->get_instance().get());
  if(oth!=nullptr && oth2!=&oth->handle()) {
  