From ddee418cd5a35d663f979fc1131f732811f1515a Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Thu, 1 Jun 2017 11:37:38 +0200 Subject: [PATCH] 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 --- src/map/npc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/npc.c b/src/map/npc.c index e4dac3c2c1..b6cd23119d 100644 --- a/src/map/npc.c +++ b/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 }