From 4a8b9f6998fa936545beece9c3c6b4d3c73babde Mon Sep 17 00:00:00 2001 From: Kenpachi Developer Date: Tue, 7 Jul 2020 09:55:20 +0200 Subject: Reapply initial values in char_changecharsex() --- src/char/char.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/char/char.c b/src/char/char.c index 8e69b1738..b3de22c00 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -3560,9 +3560,9 @@ static int char_changecharsex(int char_id, int sex) } const char *query = "SELECT `account_id`, `class`, `guild_id` FROM `%s` WHERE `char_id`=?"; - int account_id; - int class; - int guild_id; + int account_id = 0; + int class = 0; + int guild_id = 0; /** Abort changing gender if there was an error while loading the data. **/ if (SQL_ERROR == SQL->StmtPrepare(stmt, query, char_db) -- cgit v1.2.3-70-g09d2