Permalink
Browse files

Fix some missing return values

  • Loading branch information...
jacksonmj committed May 22, 2014
1 parent 7e1076e commit 7b9f43b8bff4c9faa34ac106dc07bee36a7f26b6
Showing with 4 additions and 3 deletions.
  1. +1 −2 src/gui/game/GameController.cpp
  2. +2 −1 src/lua/LuaScriptInterface.cpp
  3. +1 −0 src/lua/TPTScriptInterface.cpp
@@ -1401,8 +1401,7 @@ std::string GameController::ElementResolve(int type, int ctype)
else if (type >= 0 && type < PT_NUM && gameModel->GetSimulation()->elements)
return std::string(gameModel->GetSimulation()->elements[type].Name);
}
else
return "";
return "";
}
bool GameController::IsValidElement(int type)
@@ -1999,7 +1999,7 @@ int LuaScriptInterface::elements_loadDefault(lua_State * l)
luacon_model->BuildMenus();
luacon_sim->init_can_move();
std::fill(luacon_ren->graphicscache, luacon_ren->graphicscache+PT_NUM, gcache_item());
return 0;
}
int LuaScriptInterface::elements_allocate(lua_State * l)
@@ -2296,6 +2296,7 @@ int LuaScriptInterface::elements_property(lua_State * l)
}
else
return luaL_error(l, "Invalid element property");
return 0;
}
else
{
@@ -190,6 +190,7 @@ AnyType TPTScriptInterface::eval(std::deque<std::string> * words)
case TypeString:
return StringType(word);
}
return StringType(word);
}
std::string TPTScriptInterface::FormatCommand(std::string command)

0 comments on commit 7b9f43b

Please sign in to comment.