Commit 45dbc0f2 authored by Richard Gobeille's avatar Richard Gobeille

Duke3d: #if 0 out weird runtime check for array writability in SetArray()

parent 19e20197
......@@ -1224,12 +1224,14 @@ static void SetArray(int const arrayNum, int const arrayIndex, int const newValu
auto &arr = aGameArrays[arrayNum];
#if 0 // this needs to be a compile time check, not something done at runtime...
if (EDUKE32_PREDICT_FALSE(arr.flags & GAMEARRAY_READONLY))
{
OSD_Printf(OSD_ERROR "Tried to set value in read-only array `%s'", arr.szLabel);
vm.flags |= VM_RETURN;
return;
}
#endif
switch (arr.flags & GAMEARRAY_TYPE_MASK)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment