summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-28 18:57:17 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-28 18:57:17 +0300
commit8bfdc250ae7c5ab852653b3aa2da7f3781c7c56e (patch)
tree32d1116cc566bf0903d88f3db74d40482b30d05b /src/utils/stringutils.cpp
parentb4b262d0d6f66b1d84ef76f6c977768d013db2f1 (diff)
downloadManaVerse-8bfdc250ae7c5ab852653b3aa2da7f3781c7c56e.tar.gz
ManaVerse-8bfdc250ae7c5ab852653b3aa2da7f3781c7c56e.tar.bz2
ManaVerse-8bfdc250ae7c5ab852653b3aa2da7f3781c7c56e.tar.xz
ManaVerse-8bfdc250ae7c5ab852653b3aa2da7f3781c7c56e.zip
Use as separator coma char for internal pet moving packet.
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r--src/utils/stringutils.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index 8af8ea547..3aa3cee02 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -734,7 +734,9 @@ void secureChatCommand(std::string &str)
bool parse2Int(const std::string &args, int &x, int &y)
{
bool isValid = false;
- const size_t pos = args.find(" ");
+ size_t pos = args.find(" ");
+ if (pos == std::string::npos)
+ pos = args.find(",");
if (pos != std::string::npos)
{
if (pos + 1 < args.length())