mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 05:50:31 +00:00
Compilation fixes for C++20
This commit is contained in:
parent
e16351605b
commit
1940becb2d
40 changed files with 220 additions and 211 deletions
|
|
@ -353,7 +353,7 @@ public:
|
|||
|
||||
ival = 0;
|
||||
fval = 0;
|
||||
sval = typeValueEmpty;
|
||||
sval = NULL;
|
||||
bufferLen = 0;
|
||||
}
|
||||
|
||||
|
|
@ -404,10 +404,10 @@ public:
|
|||
{
|
||||
fval = (F32)val;
|
||||
ival = val;
|
||||
if (sval != typeValueEmpty)
|
||||
if (sval != NULL)
|
||||
{
|
||||
dFree(sval);
|
||||
sval = typeValueEmpty;
|
||||
sval = NULL;
|
||||
}
|
||||
type = TypeInternalInt;
|
||||
}
|
||||
|
|
@ -434,10 +434,10 @@ public:
|
|||
{
|
||||
fval = val;
|
||||
ival = static_cast<U32>(val);
|
||||
if (sval != typeValueEmpty)
|
||||
if (sval != NULL)
|
||||
{
|
||||
dFree(sval);
|
||||
sval = typeValueEmpty;
|
||||
sval = NULL;
|
||||
}
|
||||
type = TypeInternalFloat;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue