grr... why does it tell me this?
current = head;
while(current->next != NULL)
current = current->next;
-->new = (wptr*)malloc(sizeof(struct Weapon));
current->next = new;
new->next = NULL;
current = new;
c:\projects\rpg\inventory.c(37) : error C2059: syntax error : ')'
žÅNžÅ
current = head;
while(current->next != NULL)
current = current->next;
-->new = (wptr*)malloc(sizeof(struct Weapon));
current->next = new;
new->next = NULL;
current = new;
c:\projects\rpg\inventory.c(37) : error C2059: syntax error : ')'
žÅNžÅ