diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-07-07 09:55:20 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-07-07 09:55:20 +0200 |
commit | 4a8b9f6998fa936545beece9c3c6b4d3c73babde (patch) | |
tree | 35d441ab7631cbdbecfc7e74b4b08aa7de4342f3 | |
parent | 605014f8ad2b5410f85155682c8c483c4bec4568 (diff) | |
download | hercules-4a8b9f6998fa936545beece9c3c6b4d3c73babde.tar.gz hercules-4a8b9f6998fa936545beece9c3c6b4d3c73babde.tar.bz2 hercules-4a8b9f6998fa936545beece9c3c6b4d3c73babde.tar.xz hercules-4a8b9f6998fa936545beece9c3c6b4d3c73babde.zip |
Reapply initial values in char_changecharsex()
-rw-r--r-- | src/char/char.c | 6 |
1 files 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) |