diff options
author | Machiavelli <none@none> | 2009-10-09 23:00:02 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-10-09 23:00:02 +0200 |
commit | 56547212691e8fd44d9e676d5fe1259ec6d25238 (patch) | |
tree | 8f1a1fcab9113db62fcf26ef4b311049395e8af4 /src | |
parent | a4adccef0f97ccf0d14842307c44fcf314fa1831 (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.cpp | 2 |
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); |