Skip to content

Commit

Permalink
Merge pull request #756 from Blizzard/fix-path-translate
Browse files Browse the repository at this point in the history
Fix a call to deprecated os.get()
  • Loading branch information
tvandijck authored Apr 24, 2017
2 parents 473b2f1 + 8827098 commit da3835d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/host/path_translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int path_translate(lua_State* L)
if (lua_gettop(L) == 1) {
// Get target OS
lua_getglobal(L, "os");
lua_getfield(L, -1, "get");
lua_getfield(L, -1, "target");
lua_call(L, 0, 1);
os = luaL_checkstring(L, -1);
lua_pop(L, 2);
Expand Down

0 comments on commit da3835d

Please sign in to comment.