mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-03 13:36:36 +00:00
[Crash] Fix out of bound arrays, other potential crashes (#3166)
This commit is contained in:
+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