From 1a6a23ec96c7646d2753198f93eaba62d2732a83 Mon Sep 17 00:00:00 2001 From: Spp Date: Mon, 25 Mar 2013 13:26:48 +0100 Subject: Core/Misc: Minor optimizations (+code changes to reduce differences with 4.3.4 branch) Core/Logging: Create new logger type "Cheat". Will be used to log all cheat attempts --- src/server/game/Instances/InstanceScript.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/server/game/Instances/InstanceScript.cpp') diff --git a/src/server/game/Instances/InstanceScript.cpp b/src/server/game/Instances/InstanceScript.cpp index bfd9bd62647..0b4c32500e0 100644 --- a/src/server/game/Instances/InstanceScript.cpp +++ b/src/server/game/Instances/InstanceScript.cpp @@ -403,6 +403,8 @@ void InstanceScript::SendEncounterUnit(uint32 type, Unit* unit /*= NULL*/, uint8 case ENCOUNTER_FRAME_ENGAGE: case ENCOUNTER_FRAME_DISENGAGE: case ENCOUNTER_FRAME_UPDATE_PRIORITY: + if (!unit) + return; data.append(unit->GetPackGUID()); data << uint8(param1); break; -- cgit v1.2.3