mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-29 23:15:56 -04:00
delete before crapping out
This commit is contained in:
@@ -1999,6 +1999,7 @@ ShipComponentData * ShipObject::createShipComponentData (int chassisSlot) const
|
||||
if (shipComponentData == NULL)
|
||||
{
|
||||
WARNING (true, ("ShipObject::createShipComponentData failed for slot [%d] ship Component data could not be constructed", chassisSlot));
|
||||
delete(shipComponentData);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user