Skip to content

Commit ed5bf21

Browse files
committed
Fix crash
1 parent 32f9c0e commit ed5bf21

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mods/ctf/ctf_modebase/match.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ local function start_new_match()
7474
restart_on_next_match = ""
7575
end
7676

77-
ctf_modebase.in_game = false
78-
ctf_modebase.on_match_end()
77+
if ctf_modebase.in_game then
78+
ctf_modebase.in_game = false
79+
ctf_modebase.on_match_end()
80+
end
7981

8082
if restart_on_next_match then
8183
minetest.chat_send_all(minetest.colorize("red",

0 commit comments

Comments
 (0)