diff --git a/src/lua_voicelib.c b/src/lua_voicelib.c index 5a399b2e8..cea205069 100644 --- a/src/lua_voicelib.c +++ b/src/lua_voicelib.c @@ -135,6 +135,7 @@ static int voice_set(lua_State* L) case voicevars_name: return RNOSET; case voicevars_parent: + { // It would make no sense not to accept a skin struct here. skin_t* my_new_parent = *((skin_t**)luaL_checkudata(L, 3, META_SKIN)); @@ -147,6 +148,7 @@ static int voice_set(lua_State* L) voice->parent = (UINT16)(my_new_parent - skins); } break; + } case voicevars_win: // For the actual sound values, you pass the actual sfxenum_t enums. // Yes, I know what I said about skin structs literally just above. @@ -342,4 +344,4 @@ int LUA_VoiceLib(lua_State* L) lua_setglobal(L, "skinvoices"); return 0; -} \ No newline at end of file +}