summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-10-29 07:07:37 +0000
committerbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-10-29 07:07:37 +0000
commit4e8d1c0ed95fda26a5d0a5fd6f8ef00feed8eae7 (patch)
tree0845a046014d50b0208d07c94932c29eb7c0eb0c /src
parent07ff4adffb312e138502a83316dff13287a8d153 (diff)
downloadhercules-4e8d1c0ed95fda26a5d0a5fd6f8ef00feed8eae7.tar.gz
hercules-4e8d1c0ed95fda26a5d0a5fd6f8ef00feed8eae7.tar.bz2
hercules-4e8d1c0ed95fda26a5d0a5fd6f8ef00feed8eae7.tar.xz
hercules-4e8d1c0ed95fda26a5d0a5fd6f8ef00feed8eae7.zip
- Fixed warnings from r16835.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16836 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/chrif.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index 9a4cb1554..8feab38d5 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -835,11 +835,11 @@ static void chrif_char_ask_name_answer(int acc, const char* player_name, uint16
return;
}
- if(type>0 && type<=5)
- sprintf(action,msg_txt(427+type)); //block|ban|unblock|unban|change the sex of
- else
- sprintf(action,"???");
-
+ if(type>0 && type<=5)
+ action = msg_txt(427+type); //block|ban|unblock|unban|change the sex of
+ else
+ action = "???";
+
switch( answer ) {
case 0 : sprintf(output, msg_txt(424), action, NAME_LENGTH, player_name); break;
case 1 : sprintf(output, msg_txt(425), NAME_LENGTH, player_name); break;