Initialize def to NULL when spawning item (GCC warning fix).
This commit is contained in:
parent
a040e58fa4
commit
4c0d1ab808
|
@ -65,6 +65,8 @@ Entity *spawnItem(char *name)
|
|||
{
|
||||
Entity *e, *def, *item;
|
||||
|
||||
def = NULL;
|
||||
|
||||
item = spawnEntity();
|
||||
|
||||
if (strcmp(name, "RANDOM"))
|
||||
|
|
Loading…
Reference in New Issue