Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7
This commit is contained in:
@@ -91,7 +91,7 @@ lua_State *L;
|
||||
{
|
||||
struct selectionvar *tmp = selection_new();
|
||||
struct selectionvar
|
||||
*sel = (struct selectionvar *) lua_newuserdata(L, sizeof sel);
|
||||
*sel = (struct selectionvar *) lua_newuserdata(L, sizeof(struct selectionvar));
|
||||
|
||||
luaL_getmetatable(L, "selection");
|
||||
lua_setmetatable(L, -2);
|
||||
|
||||
@@ -3581,7 +3581,7 @@ lua_State *L UNUSED;
|
||||
struct selectionvar *
|
||||
selection_new()
|
||||
{
|
||||
struct selectionvar *tmps = (struct selectionvar *) alloc(sizeof tmps);
|
||||
struct selectionvar *tmps = (struct selectionvar *) alloc(sizeof(struct selectionvar));
|
||||
|
||||
tmps->wid = COLNO;
|
||||
tmps->hei = ROWNO;
|
||||
|
||||
Reference in New Issue
Block a user