summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-08-13 18:22:07 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-08-13 18:22:07 -0700
commit5f198c32a3a700a5906dbcdcf7fb99c95a01727c (patch)
treec7b9db8ab334dfa438a4bbd44ce6cbb35b9e4f8e /src/map
parent39b6bd3a9c9539e2131a570264e9fd87467a233c (diff)
downloadtmwa-5f198c32a3a700a5906dbcdcf7fb99c95a01727c.tar.gz
tmwa-5f198c32a3a700a5906dbcdcf7fb99c95a01727c.tar.bz2
tmwa-5f198c32a3a700a5906dbcdcf7fb99c95a01727c.tar.xz
tmwa-5f198c32a3a700a5906dbcdcf7fb99c95a01727c.zip
Skip spaces in one of the few places that aspect of atoi() was useful
Diffstat (limited to 'src/map')
-rw-r--r--src/map/atcommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp
index 18ea0e0..05e49c0 100644
--- a/src/map/atcommand.cpp
+++ b/src/map/atcommand.cpp
@@ -1781,7 +1781,7 @@ int atcommand_help(const int fd, dumb_ptr<map_session_data> sd,
if (!split_key_value(line, &w1, &w2))
continue;
int level;
- extract(w1, &level);
+ extract(w1.strip(), &level);
if (gm_level >= level)
clif_displaymessage(fd, w2);
}