diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2017-12-06 05:12:45 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2017-12-06 05:12:45 +0000 |
| commit | 624b8be46f38a695f6f9e4c7ea07cd8f370c04b4 (patch) | |
| tree | 24e9e62b8e0c2c2cae1c0026ef36010fd09214a1 /RenderScript/src/ScriptParser.cpp | |
| parent | CMake: Added grouping of projects in VS solution (diff) | |
| download | DiligentTools-624b8be46f38a695f6f9e4c7ea07cd8f370c04b4.tar.gz DiligentTools-624b8be46f38a695f6f9e4c7ea07cd8f370c04b4.zip | |
Updated cmake files; fixed build warnings
Diffstat (limited to 'RenderScript/src/ScriptParser.cpp')
| -rw-r--r-- | RenderScript/src/ScriptParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/RenderScript/src/ScriptParser.cpp b/RenderScript/src/ScriptParser.cpp index 8e65d75..e08f422 100644 --- a/RenderScript/src/ScriptParser.cpp +++ b/RenderScript/src/ScriptParser.cpp @@ -182,6 +182,7 @@ namespace Diligent // The string is always zero-terminated and Lua ensures that this pointer is valid as long // as the corresponding value is in the stack. auto ErrorMsg = lua_tostring( m_LuaState, -1 ); + lua_pop(m_LuaState, 1); // pop error message from the stack if( ErrorMsg ) { @@ -191,7 +192,6 @@ namespace Diligent { LOG_ERROR_AND_THROW( "Failed to parse the script file." ); } - lua_pop( m_LuaState, 1 ); // pop error message from the stack } } |
