mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 04:30:09 -05:00
Fixing CREDITS file
Removing many of clang warnings
This commit is contained in:
@@ -67,16 +67,14 @@ std::vector<int> PropertyDelegate<TemplateProperty<std::vector<int>>>::fromLuaVa
|
||||
|
||||
std::vector<int> result;
|
||||
|
||||
if (!lua_istable(state, -1)) {
|
||||
if (!lua_istable(state, VAL)) {
|
||||
LERROR("Parameter passed to the property is not a table");
|
||||
success = false;
|
||||
return result;
|
||||
}
|
||||
|
||||
lua_pushnil(state);
|
||||
while (lua_next(state, -2) != 0) {
|
||||
int valueType = lua_type(state, VAL);
|
||||
|
||||
while (lua_next(state, KEY) != 0) {
|
||||
if (lua_isnumber(state, VAL)) {
|
||||
int number = static_cast<int>(lua_tonumber(state, VAL));
|
||||
result.push_back(number);
|
||||
|
||||
Reference in New Issue
Block a user