Permalink
Browse files

Some c++ fixes

  • Loading branch information...
mugmuggy committed Nov 24, 2017
1 parent fe1a526 commit 8e146b39061d1bd6674fcf6213df295cc4de2b36
Showing with 1 addition and 2 deletions.
  1. +1 −1 CorsixTH/Src/lua.hpp
  2. +0 −1 CorsixTH/Src/th_lua_map.cpp
View
@@ -51,7 +51,7 @@ inline int lua_equal(lua_State *L, int idx1, int idx2)
#ifndef lua_lessthan
inline int lua_lessthan(lua_State *L, int idx1, int idx2)
{
return lua_compare(L, idx1, idx1, LUA_OPLT);
return lua_compare(L, idx1, idx2, LUA_OPLT);
}
#endif
@@ -412,7 +412,6 @@ static int l_map_get_player_heliport(lua_State *L)
int iX, iY;
int iPlayer = static_cast<int>(luaL_optinteger(L, 2, 1));
bool bGood = pMap->getPlayerHeliportTile(iPlayer - 1, &iX, &iY);
bGood = pMap->getPlayerHeliportTile(iPlayer - 1, &iX, &iY);
if(!bGood)
return luaL_error(L, "Player index out of range: %d", iPlayer);
lua_pushinteger(L, iX + 1);

0 comments on commit 8e146b3

Please sign in to comment.