Skip to content

Commit

Permalink
Merge pull request #2662 from Ghabry/regression/erase-pic
Browse files Browse the repository at this point in the history
Fix Erase Picture in RPG2k3 1.12 through constant value
  • Loading branch information
carstene1ns authored Oct 22, 2021
2 parents 9ebc22a + b804cbb commit 7eb6145
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/game_interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2852,9 +2852,11 @@ bool Game_Interpreter::CommandErasePicture(lcf::rpg::EventCommand const& com) {

int pic_id_max;
switch (id_type) {
case 0:
// Erase single picture specified by constant
case 1:
// Erase single picture referenced by variable
pic_id = Main_Data::game_variables->Get(pic_id);
pic_id = ValueOrVariable(id_type, pic_id);
pic_id_max = pic_id;
break;
case 2:
Expand Down

0 comments on commit 7eb6145

Please sign in to comment.