summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-10-13 12:59:35 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-10-13 12:59:35 -0700
commit962552f17274dc066d17ab3d6c9495d77d681314 (patch)
tree1ce9353ce471d3775fa710ab9545091318878138 /src
parent9978ce65483f3929d82e20212bf932b215f995f0 (diff)
downloadtmwa-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')
-rw-r--r--src/admin/ladmin.cpp3
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;
}