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:
parent
6a269d58ef
commit
a871115889
9 changed files with 13 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue