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()
|
public void Remove()
|
||||||
{
|
{
|
||||||
sprite.Remove();
|
if (sprite != null)
|
||||||
sprite = null;
|
{
|
||||||
|
sprite.Remove();
|
||||||
|
sprite = null;
|
||||||
|
}
|
||||||
|
|
||||||
if (LightSource != null)
|
if (LightSource != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user