修复debug模式下f4可能引起报错 close #183

This commit is contained in:
MrZ626
2021-08-09 22:34:16 +08:00
parent 782e1ef506
commit 1e1560651a

View File

@@ -217,7 +217,7 @@ local function noDevkeyPressed(key)
elseif key=="f4"then
for _=1,8 do
local P=PLY_ALIVE[rnd(#PLY_ALIVE)]
if P~=PLAYERS[1]then
if P and P~=PLAYERS[1]then
P.lastRecv=PLAYERS[1]
P:lose()
end