diff --git a/src/hardware/hw_batching.c b/src/hardware/hw_batching.c index 3772e4a68..80bc7ad94 100644 --- a/src/hardware/hw_batching.c +++ b/src/hardware/hw_batching.c @@ -48,7 +48,9 @@ int unsortedVertexArrayAllocSize = 65536; void HWR_StartBatching(void) { if (currently_batching) + { I_Error("Repeat call to HWR_StartBatching without HWR_RenderBatches"); + } // init arrays if that has not been done yet if (!finalVertexArray) diff --git a/src/lua_mobjlib.c b/src/lua_mobjlib.c index f62e59486..7385cccf6 100644 --- a/src/lua_mobjlib.c +++ b/src/lua_mobjlib.c @@ -147,7 +147,7 @@ static const udata_field_t mobj_fields[] = { FIELD(mobj_t, colorized, udatalib_getter_boolean, udatalib_setter_boolean), FIELD(mobj_t, mirrored, udatalib_getter_boolean, udatalib_setter_boolean), FIELD(mobj_t, rollmodel, udatalib_getter_boolean, udatalib_setter_boolean), - { NULL }, + { NULL, 0, NULL, NULL }, }; #undef FIELD diff --git a/src/lua_playerlib.c b/src/lua_playerlib.c index 2d79d536d..74e6b0f32 100644 --- a/src/lua_playerlib.c +++ b/src/lua_playerlib.c @@ -160,7 +160,7 @@ static const udata_field_t player_fields[] = { // Same as player.name { "sliproll", 0, player_sliproll_getter, player_sliproll_noset }, { "ping", 0, player_ping_getter, player_ping_noset }, // Hmm originally setter doesn't exist so data is written as unreachable custom field... - { NULL }, + { NULL, 0, NULL, NULL }, }; #undef FIELD