mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
* [UUID] BugFix: Correct a memory mismanagement error in UUID programming due to the way xuuid_t is utilized.
This commit is contained in:
parent
3c61538811
commit
eca3fbfa67
3 changed files with 30 additions and 24 deletions
|
|
@ -975,13 +975,16 @@ ConsoleSetType( TypePID )
|
|||
else
|
||||
{
|
||||
Torque::UUID uuid;
|
||||
if( !uuid.fromString( argv[ 0 ] ) )
|
||||
{
|
||||
|
||||
if( !uuid.fromString( argv[ 0 ] ) )
|
||||
{
|
||||
Con::errorf( "Error parsing UUID in PID: '%s'", argv[ 0 ] );
|
||||
*pid = NULL;
|
||||
}
|
||||
else
|
||||
*pid = SimPersistID::findOrCreate( uuid );
|
||||
}
|
||||
else
|
||||
{
|
||||
*pid = SimPersistID::findOrCreate(uuid);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue