]> git.xonotic.org Git - xonotic/darkplaces.git/commit
sv_cheats: fix two segfaults when setting it to 0
authorbones_was_here <bones_was_here@xonotic.au>
Mon, 5 Feb 2024 20:38:45 +0000 (06:38 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Tue, 6 Feb 2024 08:04:41 +0000 (18:04 +1000)
commitada327fc67c9441b808bcadec87027cd0eee66d9
tree25358bc65a3fe47dc54ab82d934f99d3b331a236
parent32c99c7b0a58545b273fa713d81d6bbfb3b8ebe6
sv_cheats: fix two segfaults when setting it to 0

Assuming the SVQC program is always running crashes when it's not.

Testing if the edict pointer is NULL isn't a valid way to stop at the
end of the client slots, which caused this to crash when Xonotic SVQC
was running.

See 1814b2df58302baa47df6718b09465265dfc7e5c

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
sv_ccmds.c