mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 13:45:42 +12:00
fix npc wandering crashing the entire server >_<
This commit is contained in:
parent
0cf1665a11
commit
6322b2d2b6
1 changed files with 4 additions and 4 deletions
|
@ -177,6 +177,8 @@ namespace HISP.Game
|
|||
if (GameServer.GetUsersAt(this.X, this.Y, true, true).Length > 0)
|
||||
return;
|
||||
|
||||
if (UdlrScriptPos > UDLRScript.Length)
|
||||
UdlrScriptPos = 0;
|
||||
|
||||
switch (UDLRScript.ToLower()[UdlrScriptPos])
|
||||
{
|
||||
|
@ -198,10 +200,8 @@ namespace HISP.Game
|
|||
break;
|
||||
}
|
||||
|
||||
if (UdlrScriptPos > UDLRScript.Length)
|
||||
UdlrScriptPos = 0;
|
||||
else
|
||||
UdlrScriptPos++;
|
||||
|
||||
UdlrScriptPos++;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue