We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e56b7a1 commit a2e0cf2Copy full SHA for a2e0cf2
src/game_interpreter.cpp
@@ -3854,7 +3854,7 @@ bool Game_Interpreter::CommandEraseEvent(lcf::rpg::EventCommand const& com) { //
3854
int event_id = 0; // default rm values
3855
bool is_active = 0; // In Vanilla RM event is always itself and it always becomes inactive
3856
3857
- if (Player::IsPatchManiac()) {
+ if (Player::IsPatchManiac() && com.parameters.size() >= 3) {
3858
event_id = ValueOrVariableBitfield(com.parameters[0], 1, com.parameters[2]);
3859
is_active = com.parameters[1];
3860
}
0 commit comments