diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-10-13 12:59:35 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-10-13 12:59:35 -0700 |
commit | 962552f17274dc066d17ab3d6c9495d77d681314 (patch) | |
tree | 1ce9353ce471d3775fa710ab9545091318878138 /src/admin/ladmin.cpp | |
parent | 9978ce65483f3929d82e20212bf932b215f995f0 (diff) | |
download | tmwa-962552f17274dc066d17ab3d6c9495d77d681314.tar.gz tmwa-962552f17274dc066d17ab3d6c9495d77d681314.tar.bz2 tmwa-962552f17274dc066d17ab3d6c9495d77d681314.tar.xz tmwa-962552f17274dc066d17ab3d6c9495d77d681314.zip |
Fix reversed error condition in ladmin changesex
Diffstat (limited to 'src/admin/ladmin.cpp')
-rw-r--r-- | src/admin/ladmin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/admin/ladmin.cpp b/src/admin/ladmin.cpp index fbea4dc..cf1169c 100644 --- a/src/admin/ladmin.cpp +++ b/src/admin/ladmin.cpp @@ -1393,8 +1393,9 @@ void changesex(ZString param) } char sex = sex_.front(); - if (name.is_print()) + if (!name.is_print()) { + PRINTF("bad name\n"); return; } |