diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-30 21:10:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-30 21:10:18 +0300 |
commit | 2c9c1e2eb8e74a6f8d9765993365648555ddf9b0 (patch) | |
tree | b2f83e8dda892954898205526bd0d4796ba52641 /src/echar | |
parent | b826af28255cbd69318929aeb06b4164feed5588 (diff) | |
download | plugin-2c9c1e2eb8e74a6f8d9765993365648555ddf9b0.tar.gz plugin-2c9c1e2eb8e74a6f8d9765993365648555ddf9b0.tar.bz2 plugin-2c9c1e2eb8e74a6f8d9765993365648555ddf9b0.tar.xz plugin-2c9c1e2eb8e74a6f8d9765993365648555ddf9b0.zip |
Add missing checks.
Diffstat (limited to 'src/echar')
-rw-r--r-- | src/echar/char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/echar/char.c b/src/echar/char.c index 6d43f22..965fd35 100644 --- a/src/echar/char.c +++ b/src/echar/char.c @@ -222,7 +222,7 @@ void send_additional_slots(int fd, struct char_session_data* sd) short card2; short card3; - if (sd->version < 9) + if (!sd || sd->version < 9) return; SqlStmt* stmt = SQL->StmtMalloc(inter->sql_handle); |