summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-07-30 01:50:41 +0200
committerHaru <haru@dotalux.com>2013-07-30 01:53:18 +0200
commita7b1b6581339b70d02eef2c0792928218ceb4b85 (patch)
tree20014d29582982cc55412aace9864d2f1f7d67e7 /src/map
parent7aa9e6e8b1036a74281c990f850a0c398701c298 (diff)
downloadhercules-a7b1b6581339b70d02eef2c0792928218ceb4b85.tar.gz
hercules-a7b1b6581339b70d02eef2c0792928218ceb4b85.tar.bz2
hercules-a7b1b6581339b70d02eef2c0792928218ceb4b85.tar.xz
hercules-a7b1b6581339b70d02eef2c0792928218ceb4b85.zip
Fixed mapserver crash (bugreport:7599)
http://hercules.ws/board/tracker/issue-7599-map-crash-july-29-latest/ Follow-up to 853489b intif->create_pet was defined but never initialized, causing a mapserver crash (segmentation fault) whenever a pet was created. Thanks to jTynne for reporting it. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map')
-rw-r--r--src/map/intif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index b252d2607..bfacf7a35 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -2269,6 +2269,8 @@ void intif_defaults(void) {
/* funcs */
intif->parse = intif_parse;
+
+ intif->create_pet = intif_create_pet;
intif->broadcast = intif_broadcast;
intif->broadcast2 = intif_broadcast2;