From e485a52b924f44016639647459890a13c9f46ff1 Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Wed, 4 Nov 2009 21:42:01 +0100 Subject: 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. --- npc/functions/soul_menhir.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'npc/functions') 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; -- cgit v1.2.3-70-g09d2