diff options
author | shennetsind <ind@henn.et> | 2013-09-09 20:24:24 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-09-09 20:24:24 -0300 |
commit | 58e2d279f26e9f9034ca80646a82addaafeb7ef2 (patch) | |
tree | ae47727d1192f7c865d3e2b096fb52b2aadc68d5 /src/map/vending.c | |
parent | df1952d3ecaa5708dbe12e6f32137243c6bfdacb (diff) | |
download | hercules-58e2d279f26e9f9034ca80646a82addaafeb7ef2.tar.gz hercules-58e2d279f26e9f9034ca80646a82addaafeb7ef2.tar.bz2 hercules-58e2d279f26e9f9034ca80646a82addaafeb7ef2.tar.xz hercules-58e2d279f26e9f9034ca80646a82addaafeb7ef2.zip |
Fixed Bug #7540
Fixed searchstores crashing when trying to query data of offline vendings (vending db wasn't removing entries upon logout), also changed vending->db index to char id instead of vender id.
Special Thanks to hemagx, jTynne.
http://hercules.ws/board/tracker/issue-7540-new-map-crash/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/vending.c')
-rw-r--r-- | src/map/vending.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/vending.c b/src/map/vending.c index 2784d46a2..32e084a87 100644 --- a/src/map/vending.c +++ b/src/map/vending.c @@ -283,7 +283,7 @@ void vending_openvending(struct map_session_data* sd, const char* message, const clif->openvending(sd,sd->bl.id,sd->vending); clif->showvendingboard(&sd->bl,message,0); - idb_put(vending->db, sd->vender_id, sd); + idb_put(vending->db, sd->status.char_id, sd); } |