mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-02 21:42:17 +00:00
[Crash] Fix out of bound arrays, other potential crashes (#3166)
This commit is contained in:
1 parent
0d509a7f3a
commit
0df84e1ee6
9 files changed
+34
-24
No files matched your search
+1
-1
@@ -222,7 +222,7 @@ void Doors::HandleClick(Client *sender, uint8 trigger)
|
||||
}
|
||||
}
|
||||
|
||||
if (m_dz_switch_id != 0) {
|
||||
if (sender && m_dz_switch_id != 0) {
|
||||
sender->UpdateTasksOnTouchSwitch(m_dz_switch_id);
|
||||
if (sender->TryMovePCDynamicZoneSwitch(m_dz_switch_id)) {
|
||||
safe_delete(outapp);
|
||||
|
||||
Reference in new issue
Block a user