1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix some warnings (#12615)

This commit is contained in:
rubenwardy 2022-07-30 12:51:23 +01:00 committed by GitHub
parent 6a269d58ef
commit a871115889
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 13 additions and 13 deletions

View file

@ -226,15 +226,18 @@ namespace LuaParticleParams
// get the effect settings
lua_getfield(L, -1, "style");
lua_isnil(L,-1) || (readLuaValue(L, field.style), true);
if (!lua_isnil(L,-1))
readLuaValue(L, field.style);
lua_pop(L, 1);
lua_getfield(L, -1, "reps");
lua_isnil(L,-1) || (readLuaValue(L, field.reps), true);
if (!lua_isnil(L,-1))
readLuaValue(L, field.reps);
lua_pop(L, 1);
lua_getfield(L, -1, "start");
lua_isnil(L,-1) || (readLuaValue(L, field.beginning), true);
if (!lua_isnil(L,-1))
readLuaValue(L, field.beginning);
lua_pop(L, 1);
goto done;