Fixed exception when trying to remove a limb with no sprite
This commit is contained in:
@@ -559,8 +559,11 @@ namespace Barotrauma
|
||||
|
||||
public void Remove()
|
||||
{
|
||||
sprite.Remove();
|
||||
sprite = null;
|
||||
if (sprite != null)
|
||||
{
|
||||
sprite.Remove();
|
||||
sprite = null;
|
||||
}
|
||||
|
||||
if (LightSource != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user