Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelIT7 committed May 14, 2024
1 parent 084cba0 commit db64cac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions source/library_Global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,15 @@ LUA_FUNCTION(CreateConVar)
}
}

ConVar* cvar = luaconvars->CreateConVar(name, helpText, "", flags); // Crashes for unknown reasons
// ToDo: Add support for min & max
if (luaconvars)
{
ConVar* cvar = luaconvars->CreateConVar(name, helpText, "", flags); // Crashes for unknown reasons
// ToDo: Add support for min & max

Push_ConVar(LUA, cvar);
Push_ConVar(LUA, cvar);
} else {
LUA->PushNil();
}

return 1;
}
Expand Down
2 changes: 1 addition & 1 deletion source/library_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void AsyncCallback(const FileAsyncRequest_t &request, int nBytesRead, FSAsyncSta
content[nBytesRead] = '\0';
async->content = content;
} else {
Msg("[Luathreaded] file.AsyncRead Invalid request?\n");
Msg("[Luathreaded] file.AsyncRead Invalid request? (%s, %s)\n", request.pszFilename, request.pszPathID);
}
}

Expand Down

0 comments on commit db64cac

Please sign in to comment.