Initialize def to NULL when spawning item (GCC warning fix).

This commit is contained in:
Steve 2018-10-03 07:34:38 +01:00
parent a040e58fa4
commit 4c0d1ab808
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ Entity *spawnItem(char *name)
{
Entity *e, *def, *item;
def = NULL;
item = spawnEntity();
if (strcmp(name, "RANDOM"))