Core/Entities: Vehicles should be able to be the source of map scripts

This commit is contained in:
Machiavelli
2011-06-28 21:43:06 +02:00
parent f19f0a19f2
commit 6a59d7ddc1

View File

@@ -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;