Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Jul 5, 2024
1 parent 32f9c0e commit ed5bf21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mods/ctf/ctf_modebase/match.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ local function start_new_match()
restart_on_next_match = ""
end

ctf_modebase.in_game = false
ctf_modebase.on_match_end()
if ctf_modebase.in_game then
ctf_modebase.in_game = false
ctf_modebase.on_match_end()
end

if restart_on_next_match then
minetest.chat_send_all(minetest.colorize("red",
Expand Down

0 comments on commit ed5bf21

Please sign in to comment.