From 0d103bf6a788a09a13512e5ca20fa94fc907360c Mon Sep 17 00:00:00 2001 From: aleos89 Date: Fri, 14 Jul 2017 13:54:32 -0400 Subject: [PATCH] Fixed a small bug with atcommand addwarp * The function that creates the warp was using the wrong Y area argument. Thanks to @mrjnumber1! --- 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 f629a78914..0c9b2c1ca9 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -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;