Skip to content

Commit

Permalink
scripting: call GAMEMODE_UNLOADING event before we fully unload the s…
Browse files Browse the repository at this point in the history
…cript
  • Loading branch information
zpl-zak committed Jan 10, 2024
1 parent 816d44f commit d8a6e31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/framework/src/scripting/engines/node/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ namespace Framework::Scripting::Engines::Node {
return false;
}

// Invoke the gamemode loaded event
InvokeEvent(Events[EventIDs::GAMEMODE_UNLOADING]);

// Stop node environment
node::Stop(_gamemodeEnvironment);

Expand Down

0 comments on commit d8a6e31

Please sign in to comment.