aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-10-09 23:00:02 +0200
committerMachiavelli <none@none>2009-10-09 23:00:02 +0200
commit56547212691e8fd44d9e676d5fe1259ec6d25238 (patch)
tree8f1a1fcab9113db62fcf26ef4b311049395e8af4 /src
parenta4adccef0f97ccf0d14842307c44fcf314fa1831 (diff)
* Modify .respawn command handler so that it does not work on pets, fixes crash in underlying object functions.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Level3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp
index 82b80548d03..fdcd0f267db 100644
--- a/src/game/Level3.cpp
+++ b/src/game/Level3.cpp
@@ -6188,7 +6188,7 @@ bool ChatHandler::HandleRespawnCommand(const char* /*args*/)
Unit* target = getSelectedUnit();
if(pl->GetSelection() && target)
{
- if(target->GetTypeId()!=TYPEID_UNIT)
+ if(target->GetTypeId()!=TYPEID_UNIT || target->isPet())
{
SendSysMessage(LANG_SELECT_CREATURE);
SetSentErrorMessage(true);