summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-11 23:00:47 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-11 23:00:47 +0300
commit0fa192854595ebe03cce54ad2b251abc4c8e8827 (patch)
treeb0129f65bc0a70926adea202756d0794db974980 /src/commands.cpp
parentf9209b4a764e85a7ae0e40eee654b543d2ccf2ae (diff)
downloadmv-0fa192854595ebe03cce54ad2b251abc4c8e8827.tar.gz
mv-0fa192854595ebe03cce54ad2b251abc4c8e8827.tar.bz2
mv-0fa192854595ebe03cce54ad2b251abc4c8e8827.tar.xz
mv-0fa192854595ebe03cce54ad2b251abc4c8e8827.zip
add support for multiply pets for one player at same time.
But one item still can have only one pet.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 96369c53e..10abd6d43 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -1261,7 +1261,7 @@ impHandler1(talkRaw)
impHandler1(talkPet)
{
// in future probably need add channel detection
- if (player_node->getPet())
+ if (!player_node->getPets().empty())
Net::getChatHandler()->talkPet(args, GENERAL_CHANNEL);
else
Net::getChatHandler()->talk(args, GENERAL_CHANNEL);