aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-11 15:34:31 -0500
committermegamage <none@none>2009-04-11 15:34:31 -0500
commit22529d80a477523d5925e1876948b316daf1ef88 (patch)
tree3534036b993043e47dcfa77c97c7fc04846fe1c4 /src/game/Unit.cpp
parentd697fbd158657cf6b708b186b73d277d46924a1d (diff)
*Fix build.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index cabb755958a..2d55920d0f1 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -9555,19 +9555,8 @@ void Unit::Unmount()
// only resummon old pet if the player is already added to a map
// this prevents adding a pet to a not created map which would otherwise cause a crash
// (it could probably happen when logging in after a previous crash)
-<<<<<<< HEAD:src/game/Unit.cpp
- if(GetTypeId() == TYPEID_PLAYER && IsInWorld() && ((Player*)this)->GetTemporaryUnsummonedPetNumber() && isAlive())
- {
- Pet* NewPet = new Pet((Player*)this);
- if(!NewPet->LoadPetFromDB((Player*)this, 0, ((Player*)this)->GetTemporaryUnsummonedPetNumber(), true))
- delete NewPet;
-
- ((Player*)this)->SetTemporaryUnsummonedPetNumber(0);
- }
-=======
if(GetTypeId() == TYPEID_PLAYER)
((Player*)this)->ResummonPetTemporaryUnSummonedIfAny();
->>>>>>> 661760f287d94dbbe8f5224b19ba4181c7d62910:src/game/Unit.cpp
}
void Unit::SetInCombatWith(Unit* enemy)