fix(player): 添加空指针检查避免崩溃

在 LeaveMap 函数中添加对参数 c 的空指针检查,防止当传入 nil 时程序崩溃。此修复确保了玩家离开地图时的安全性检查。
This commit is contained in:
2025-10-08 23:10:06 +08:00
parent a22287d987
commit 15bbffd3f5
4 changed files with 32 additions and 17 deletions

File diff suppressed because one or more lines are too long