Question about FindStack() Function

Why can’t I use string.Compare function in FindStack() function?
1649317684(1)

The first if statement return error: NullReferenceException: Object reference not set to an instance of an object

You can. You just can’t compare through a null reference or you’ll get a nullreferenceexception. It’ll probably mean you’re missing item or slot and it can’t reference the next part in the chain (like GetItemID()).

That’s correct. You need to check the item in stack for null before acting on it.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms