diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-24 21:46:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-24 21:46:27 +0300 |
commit | e2fec6a64a403df523d64540f70c73b99fbf491c (patch) | |
tree | 34ee4d272252990071bd84cff303b956e4b57c21 /src/map/parse.c | |
parent | cf9c4ca35fefcf392269179785371b679689364c (diff) | |
download | evol-hercules-e2fec6a64a403df523d64540f70c73b99fbf491c.tar.gz evol-hercules-e2fec6a64a403df523d64540f70c73b99fbf491c.tar.bz2 evol-hercules-e2fec6a64a403df523d64540f70c73b99fbf491c.tar.xz evol-hercules-e2fec6a64a403df523d64540f70c73b99fbf491c.zip |
map: add missing checks.
Diffstat (limited to 'src/map/parse.c')
-rw-r--r-- | src/map/parse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/parse.c b/src/map/parse.c index b06828c..97aac6f 100644 --- a/src/map/parse.c +++ b/src/map/parse.c @@ -25,6 +25,8 @@ void map_parse_version(int fd) { struct SessionExt *data = session_get(fd); + if (!data) + return; data->clientVersion = RFIFOL(fd, 2); } @@ -134,6 +136,8 @@ void map_parse_pet_emote(int fd) void map_parse_set_status(int fd) { struct SessionExt *data = session_get(fd); + if (!data) + return; data->state = RFIFOB(fd, 2); } |