Skip to content

Commit

Permalink
Fix crash on game startup
Browse files Browse the repository at this point in the history
  • Loading branch information
ToxicFrog committed Dec 25, 2023
1 parent 72df3c9 commit d5294f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions indestructable/ca.ancilla.indestructable/EventHandler.zs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class ::IndestructableEventHandler : StaticEventHandler {
force = ::IndestructableForce(pawn.GiveInventoryType("::IndestructableForce"));
force.Initialize(info[p]);
}
info[p].ReportLivesCount();
}

// Called when a player "enters the game", after their corresponding Actor is
Expand Down
1 change: 0 additions & 1 deletion indestructable/ca.ancilla.indestructable/PlayerInfo.zs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class ::PlayerInfo : Object play {
void GiveStartingLives() {
lives = indestructable_gun_bonsai_mode ? 0 : indestructable_starting_lives;
lives_reported = 0;
ReportLivesCount();
}

void Message(string msg) {
Expand Down

0 comments on commit d5294f9

Please sign in to comment.