From 8bfdc250ae7c5ab852653b3aa2da7f3781c7c56e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 28 Dec 2014 18:57:17 +0300 Subject: Use as separator coma char for internal pet moving packet. --- src/utils/stringutils.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/utils/stringutils.cpp') 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()) -- cgit v1.2.3-70-g09d2