summaryrefslogtreecommitdiff
path: root/npc/functions/soul_menhir.txt
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2009-11-04 21:42:01 +0100
committerJared Adams <jaxad0127@gmail.com>2009-11-04 14:06:32 -0700
commite485a52b924f44016639647459890a13c9f46ff1 (patch)
treedf01c88785b30b83ca54cdd87523e0b7be4da269 /npc/functions/soul_menhir.txt
parent5eea454badc4663427fad28d9cb193a632ce3c59 (diff)
downloadserverdata-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.
Diffstat (limited to 'npc/functions/soul_menhir.txt')
-rw-r--r--npc/functions/soul_menhir.txt2
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;