From 6a59d7ddc198627cda4e0c41c883b74b30d73378 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Tue, 28 Jun 2011 21:43:06 +0200 Subject: Core/Entities: Vehicles should be able to be the source of map scripts --- src/server/game/Scripting/MapScripts.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/server/game/Scripting/MapScripts.cpp') diff --git a/src/server/game/Scripting/MapScripts.cpp b/src/server/game/Scripting/MapScripts.cpp index 09fa4daa5e9..6ee95125fce 100755 --- a/src/server/game/Scripting/MapScripts.cpp +++ b/src/server/game/Scripting/MapScripts.cpp @@ -343,14 +343,12 @@ void Map::ScriptsProcess() switch (GUID_HIPART(step.targetGUID)) { case HIGHGUID_UNIT: + case HIGHGUID_VEHICLE: target = HashMapHolder::Find(step.targetGUID); break; case HIGHGUID_PET: target = HashMapHolder::Find(step.targetGUID); break; - //case HIGHGUID_VEHICLE: - // target = HashMapHolder::Find(step.targetGUID); - // break; case HIGHGUID_PLAYER: // empty GUID case also target = HashMapHolder::Find(step.targetGUID); break; -- cgit v1.2.3