فهرست منبع

Fixed warps between 2 maps of the same instance

Right now they would have always used the source map of the warp as the target map.

Thanks to @kukuasir1
Lemongrass3110 8 سال پیش
والد
کامیت
ddee418cd5
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/map/npc.c

+ 1 - 1
src/map/npc.c

@@ -3221,7 +3221,7 @@ int npc_duplicate4instance(struct npc_data *snd, int16 m) {
 
 		for(i = 0; i < im->cnt_map; i++)
 			if(im->map[i]->m && map_mapname2mapid(map[im->map[i]->src_m].name) == dm) {
-				imap = map_mapname2mapid(map[m].name);
+				imap = map_mapname2mapid(map[im->map[i]->m].name);
 				break; // Instance map matches destination, update to instance map
 			}