Skip to content

Commit

Permalink
fixed status list bug
Browse files Browse the repository at this point in the history
Fixed a bug where the status list in the items menu would display a ghost status when adding a new one. This has been removed
  • Loading branch information
crispyricepc committed Mar 20, 2019
1 parent aa453ef commit f41ce5e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions SkeletonGameMaker/Item.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,13 @@ public string GetDoorColour()

public List<string> GetStatus()
{
string[] statusarray = Status.Split(',');
List<string> statuslist = statusarray.ToList();
return statuslist;
if (Status != "")
{
string[] statusarray = Status.Split(',');
List<string> statuslist = statusarray.ToList();
return statuslist;
}
else return new List<string>();
}
public List<string> GetCommands()
{
Expand Down

0 comments on commit f41ce5e

Please sign in to comment.