Skip to content

Commit

Permalink
WaitForSingleMovement: Guard with EasyRpg Extension Check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghabry committed Jul 31, 2024
1 parent db0dfcd commit 7b1cef7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/game_interpreter_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,10 @@ bool Game_Interpreter_Map::CommandEasyRpgTriggerEventAt(lcf::rpg::EventCommand c
}

bool Game_Interpreter_Map::CommandEasyRpgWaitForSingleMovement(lcf::rpg::EventCommand const& com) {
if (!Player::HasEasyRpgExtensions()) {
return true;
}

_state.easyrpg_parameters.resize(3);

int& event_id = _state.easyrpg_parameters[0];
Expand Down

0 comments on commit 7b1cef7

Please sign in to comment.