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:
parent
a01dab7e2f
commit
ddee418cd5
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user