Public feed
#727269
// common.cppkCvar test("test", "test cvar", 1337.0f);kCmd testCmd("testCmd", "test command", testCallback);// cmd.cppkCmdSystem *cmdSys = new kCmdSystem;// cvar.cppkCvarSystem *cvarSys = new kCvarSystem;i get a segfault in the constructor for testCmd. cmdSys is NULL at this point. however, cvarSys is not. i'm betting on undefined behavior.the constructors for kCvar and kCmd call functions inside cvarSys and cmdSys, respectively.