aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Scripting/MapScripts.cpp
diff options
context:
space:
mode:
authorMachiavelli <machiavelli.trinity@gmail.com>2011-06-28 21:43:06 +0200
committerMachiavelli <machiavelli.trinity@gmail.com>2011-06-28 21:43:06 +0200
commit6a59d7ddc198627cda4e0c41c883b74b30d73378 (patch)
tree12972d3d83b7ca391d7e822c2e78aa17759e9c32 /src/server/game/Scripting/MapScripts.cpp
parentf19f0a19f284aae6d170b04aa6b4aea2aaa06609 (diff)
Core/Entities: Vehicles should be able to be the source of map scripts
Diffstat (limited to 'src/server/game/Scripting/MapScripts.cpp')
-rwxr-xr-xsrc/server/game/Scripting/MapScripts.cpp4
1 files changed, 1 insertions, 3 deletions
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<Creature>::Find(step.targetGUID);
break;
case HIGHGUID_PET:
target = HashMapHolder<Pet>::Find(step.targetGUID);
break;
- //case HIGHGUID_VEHICLE:
- // target = HashMapHolder<Vehicle>::Find(step.targetGUID);
- // break;
case HIGHGUID_PLAYER: // empty GUID case also
target = HashMapHolder<Player>::Find(step.targetGUID);
break;