mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-04 04:15:52 -04:00
Fixed OOB exception on buildings with turnstiles that do have more patrons than timestamps.
This commit is contained in:
@@ -233,7 +233,7 @@ public class turnstile extends script.base_script
|
||||
return false;
|
||||
}
|
||||
int arrayPosition = utils.getElementPositionInArray(patrons, player);
|
||||
if (arrayPosition == -1)
|
||||
if (arrayPosition == -1 || arrayPosition >= timestamps.length)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user