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