diff options
| author | Alexander Gavrilov | 2012-05-05 20:46:28 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-05-05 20:46:28 +0400 |
| commit | 81f2240c237253a7a2264c1b9682a291337667b0 (patch) | |
| tree | dfcdc55be1fcf7b23ee6e92d34590680461e27ff /library/LuaApi.cpp | |
| parent | e3440126a35750338fbc3f239b75d88b7cc2d7de (diff) | |
| download | dfhack-81f2240c237253a7a2264c1b9682a291337667b0.tar.gz dfhack-81f2240c237253a7a2264c1b9682a291337667b0.tar.bz2 dfhack-81f2240c237253a7a2264c1b9682a291337667b0.tar.xz | |
Fix some things that confuse MSVC.
Diffstat (limited to 'library/LuaApi.cpp')
| -rw-r--r-- | library/LuaApi.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/LuaApi.cpp b/library/LuaApi.cpp index ea723df6..6a8100a3 100644 --- a/library/LuaApi.cpp +++ b/library/LuaApi.cpp @@ -520,7 +520,7 @@ static int dfhack_matinfo_matches(lua_State *state) else if (lua_istable(state, 2)) { df::dfhack_material_category tmp; - Lua::CheckDFObject(state, &tmp, 2, false); + Lua::CheckDFAssign(state, &tmp, 2, false); lua_pushboolean(state, info.matches(tmp)); } else @@ -733,7 +733,7 @@ static int maps_getTileBlock(lua_State *L) if (lua_gettop(L) == 1) { df::coord pos; - Lua::CheckDFObject(L, &pos, 1); + Lua::CheckDFAssign(L, &pos, 1); block = Maps::getTileBlock(pos); } else |
