Lets take a shot at this! Ok. I could see why. I believe when your using || statements, if one of the statements comes back true, it just moves on. So if obj->value[3] == FALSE, then it skips on to spell_lookup, and bamo! There's your poblem. Put your ((herb = herb_id_lookup(obj->value[2])) == NULL) first, and -then- do your other checks. Make sure you always initalize first :)

Davion

_________________________________________________________________
Free yourself from those irritating pop-up ads with MSn Premium. Get 2months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines


Reply via email to