Skip to content
Permalink
Browse files

Fixed a small bug with atcommand addwarp

* The function that creates the warp was using the wrong Y area argument.
Thanks to @mrjnumber1!
  • Loading branch information...
aleos89 committed Jul 14, 2017
1 parent 77ad410 commit 0d103bf6a788a09a13512e5ca20fa94fc907360c
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 0d103bf

Please sign in to comment.
You can’t perform that action at this time.