From 56547212691e8fd44d9e676d5fe1259ec6d25238 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Fri, 9 Oct 2009 23:00:02 +0200 Subject: [PATCH] * Modify .respawn command handler so that it does not work on pets, fixes crash in underlying object functions. --HG-- branch : trunk --- src/game/Level3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);