mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-22 17:32:19 -05:00
Re-added ImStrdup around string value (#1009)
This commit is contained in:
parent
cec0bc6fca
commit
85c4cd3863
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user