summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-24 21:48:26 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-24 21:48:26 +0300
commitf7ebaf0e90ee5692e5f36ce6909518bb38044f96 (patch)
treeed71c9773aeaac026b7376a3a8a2306f356970c5
parente2fec6a64a403df523d64540f70c73b99fbf491c (diff)
downloadevol-hercules-f7ebaf0e90ee5692e5f36ce6909518bb38044f96.tar.gz
evol-hercules-f7ebaf0e90ee5692e5f36ce6909518bb38044f96.tar.bz2
evol-hercules-f7ebaf0e90ee5692e5f36ce6909518bb38044f96.tar.xz
evol-hercules-f7ebaf0e90ee5692e5f36ce6909518bb38044f96.zip
char: add missing checks.
-rw-r--r--src/char/char.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/char/char.c b/src/char/char.c
index b0328c6..d68d02b 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -40,6 +40,9 @@ void echar_parse_char_create_new_char(int *fdPtr, struct char_session_data* sd)
uint16 look = 0;
uint8 sex = 0;
+ if (!sd)
+ return;
+
if (sd->version >= 4)
{
race = RFIFOW(fd, 31);