Skip to content

Commit

Permalink
Removed CreateConVar again
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelIT7 committed Apr 5, 2024
1 parent a746361 commit fa63045
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/library_Global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ LUA_FUNCTION(CreateConVar)
}
}

ConVar* cvar = luaconvars->CreateConVar(name, helpText, "", 1); // LuaConCommandAutocomplete doesn't have the values gmod uses. Idk but this could cause problems.
ConVar* cvar = luaconvars->CreateConVar(name, helpText, "", 1); // Crashes for unknown reasons
// ToDo: Add support for min & max

Push_ConVar(LUA, cvar);
Expand Down Expand Up @@ -365,7 +365,7 @@ void InitGlobal(GarrysMod::Lua::ILuaInterface* LUA)
Add_Func(LUA, Global_Msg, "Msg");
Add_Func(LUA, RunConsoleCommand, "RunConsoleCommand");
Add_Func(LUA, GetConVar, "GetConVar");
Add_Func(LUA, CreateConVar, "CreateConVar");
//Add_Func(LUA, CreateConVar, "CreateConVar");

Add_Func(LUA, CurTime, "CurTime");
Add_Func(LUA, RealTime, "RealTime");
Expand Down

0 comments on commit fa63045

Please sign in to comment.