Fixed a small bug with atcommand addwarp

* The function that creates the warp was using the wrong Y area argument.
Thanks to @mrjnumber1!
This commit is contained in:
aleos89 2017-07-14 13:54:32 -04:00
parent 77ad410607
commit 0d103bf6a7

View File

@ -2464,7 +2464,7 @@ struct npc_data* npc_add_warp(char* name, short from_mapid, short from_x, short
nd->u.warp.x = to_x;
nd->u.warp.y = to_y;
nd->u.warp.xs = xs;
nd->u.warp.ys = xs;
nd->u.warp.ys = ys;
nd->bl.type = BL_NPC;
nd->subtype = NPCTYPE_WARP;
nd->trigger_on_hidden = false;