|
|
@@ -50,8 +50,9 @@ public sealed class LuaTable
|
|
|
|
|
|
if (MathEx.IsInteger(d))
|
|
|
{
|
|
|
+ const int maxArraySize = 0x0f4240;
|
|
|
var index = (int)d;
|
|
|
- if (0 < index && index <= 0xf00 && index <= Math.Max(array.Length * 2, 8))
|
|
|
+ if (0 < index && index < maxArraySize && index <= Math.Max(array.Length * 2, 8))
|
|
|
{
|
|
|
if (array.Length < index)
|
|
|
EnsureArrayCapacity(index);
|