diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2009-11-04 21:42:01 +0100 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-11-04 14:06:32 -0700 |
commit | e485a52b924f44016639647459890a13c9f46ff1 (patch) | |
tree | df01c88785b30b83ca54cdd87523e0b7be4da269 | |
parent | 5eea454badc4663427fad28d9cb193a632ce3c59 (diff) | |
download | serverdata-e485a52b924f44016639647459890a13c9f46ff1.tar.gz serverdata-e485a52b924f44016639647459890a13c9f46ff1.tar.bz2 serverdata-e485a52b924f44016639647459890a13c9f46ff1.tar.xz serverdata-e485a52b924f44016639647459890a13c9f46ff1.zip |
Fix out of range access of array.
The bug was that sometimes the respawn
position was set to coordinates (0, 0), so that the player was reborn at
random positions.
-rw-r--r-- | npc/functions/soul_menhir.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/functions/soul_menhir.txt b/npc/functions/soul_menhir.txt index 29701b07..a98681c6 100644 --- a/npc/functions/soul_menhir.txt +++ b/npc/functions/soul_menhir.txt @@ -37,7 +37,7 @@ L_Do_Save: goto L_Return; L_FindPoint: - set @n, rand(0, getarraysize(@Xs)); + set @n, rand(getarraysize(@Xs)); set @x, @Xs[@n]; set @y, @Ys[@n]; goto L_Do_Save; |