Skip to content

Commit

Permalink
Erase Event - propper conditions to avoid running useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
jetrotal committed Dec 19, 2024
1 parent e56b7a1 commit 248530c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game_interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3862,7 +3862,7 @@ bool Game_Interpreter::CommandEraseEvent(lcf::rpg::EventCommand const& com) { //
auto& frame = GetFrame();
auto& index = frame.current_command;

if (event_id == 0) {
if (event_id == 0 && com.parameters.size() >= 3) {
event_id = GetThisEventId();
}

Expand Down

0 comments on commit 248530c

Please sign in to comment.