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
This commit is contained in:
Lemongrass3110 2017-06-01 11:37:38 +02:00
parent a01dab7e2f
commit ddee418cd5

View File

@ -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
}