Skip to content

Commit

Permalink
fix: Trying to call alarm on non existing object (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
OH296 authored Jan 8, 2025
1 parent 389a84f commit ab1f7e1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions objects/obj_popup/Keyboard_13.gml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ if (battle_special>0){
cooldown=10;exit;
}

if (option1="") and (type<5){
if (option1="" && type<5){
obj_controller.cooldown=10;
if (number!=0) and (obj_controller.complex_event=false) then obj_turn_end.alarm[1]=4;
if (number!=0) and (obj_controller.complex_event=false){
if (instance_exists(obj_turn_end)){
obj_turn_end.alarm[1]=4;
}
}
instance_destroy();
}

Expand Down

0 comments on commit ab1f7e1

Please sign in to comment.