Fixed crash at out of range access to array data in battleground code.