Jump to content

destroy_char_item only destroys equipped items?


Isaac

Recommended Posts

I wouldn't do this in a normal scenario, but here's my troublesome code. It's supposed to destroy all of the party's items, equipped or in their pack. It seems to only destroy equipped items.

 

Code:
i = 0;while(i < 40) {	j = 0;	while(j < 4) {		if(char_ok(j))			destroy_char_item(j,i);		j = j + 1;	}	i = i + 1;}
Link to comment
Share on other sites

Total shot in the dark here, but could it be choking on empty slots? I'd try putting a check to make sure there's something in the slot in front of the destroy_char_item() call, to see if that helps. If not, it definitely seems like a bug in either the implementation or documentation of the call...

 

-spyderbytes

 

EDIT: Left out a word. shocked

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...