diff options
author | Spp <spp@jorge.gr> | 2013-03-25 13:26:48 +0100 |
---|---|---|
committer | Spp <spp@jorge.gr> | 2013-03-25 13:26:48 +0100 |
commit | 1a6a23ec96c7646d2753198f93eaba62d2732a83 (patch) | |
tree | 2ef7e8ffd5201bd6e7bf0a4ddfd768a24e263e82 /src/server/game/Instances/InstanceScript.cpp | |
parent | 7c36e3a298ce243631848b94364c185a863d1526 (diff) |
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
Diffstat (limited to 'src/server/game/Instances/InstanceScript.cpp')
-rw-r--r-- | src/server/game/Instances/InstanceScript.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |