Merge pull request #1010 from briaguya-ai/rnextmerge

zhora -> rando-next
This commit is contained in:
briaguya 2022-08-02 15:30:16 -07:00 committed by GitHub
commit f01f9a9b45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ extern "C" void CVar_SetString(const char* name, const char* value) {
cvar = std::make_unique<CVar>(); cvar = std::make_unique<CVar>();
} }
cvar->type = CVarType::String; cvar->type = CVarType::String;
cvar->value.valueStr = value; cvar->value.valueStr = ImStrdup(value);
} }
extern "C" void CVar_RegisterRGBA(const char* name, Color_RGBA8 defaultValue) { extern "C" void CVar_RegisterRGBA(const char* name, Color_RGBA8 defaultValue) {