From 6e7e97cac72ef065548ace94e91340aea3021f7b Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Thu, 21 Dec 2017 16:06:16 +0100 Subject: [PATCH] Fixed a crash caused by setquest in login events (#2728) Fixes #2700 Thanks to @ignizh --- src/map/pc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map/pc.cpp b/src/map/pc.cpp index ef9b53d190..f5c60c7aa2 100755 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -12256,6 +12256,8 @@ void pc_show_questinfo(struct map_session_data *sd) { return; if (!map[sd->bl.m].qi_count || !map[sd->bl.m].qi_data) return; + if (map[sd->bl.m].qi_count != sd->qi_count) + return; // init was not called yet for(i = 0; i < map[sd->bl.m].qi_count; i++) { qi = &map[sd->bl.m].qi_data[i];