mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
Update console.h
This commit is contained in:
parent
eec4573782
commit
fb1840ab1d
1 changed files with 4 additions and 2 deletions
|
|
@ -337,7 +337,8 @@ public:
|
||||||
{
|
{
|
||||||
cleanupData();
|
cleanupData();
|
||||||
type = ConsoleValueType::cvString;
|
type = ConsoleValueType::cvString;
|
||||||
s = const_cast<char*>(ref);
|
s = (char*)std::move(ref);
|
||||||
|
bufferLen = len;
|
||||||
}
|
}
|
||||||
|
|
||||||
TORQUE_FORCEINLINE void setBool(const bool val)
|
TORQUE_FORCEINLINE void setBool(const bool val)
|
||||||
|
|
@ -351,7 +352,8 @@ public:
|
||||||
{
|
{
|
||||||
cleanupData();
|
cleanupData();
|
||||||
type = ConsoleValueType::cvSTEntry;
|
type = ConsoleValueType::cvSTEntry;
|
||||||
s = const_cast<char*>(val);
|
s = (char*)std::move(val);
|
||||||
|
bufferLen = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
TORQUE_FORCEINLINE void setEmptyString()
|
TORQUE_FORCEINLINE void setEmptyString()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue