From b1d25bc45df987a7e55ede2a0529fc90986ad1c7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Sep 2014 13:11:29 +0300 Subject: Fix homunculus name detection. --- src/being/playerinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/being/playerinfo.cpp') diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp index 4f40b2c58..d4654c7be 100644 --- a/src/being/playerinfo.cpp +++ b/src/being/playerinfo.cpp @@ -522,7 +522,7 @@ void setHomunculus(HomunculusInfo *const info) void setHomunculusBeing(Being *const being) { - if (!being || !mPet) + if (!being || !mHomunculus) return; being->setName(mHomunculus->name); being->setOwner(localPlayer); -- cgit v1.2.3-70-g09d2