View Single Post
Old September 20, 2015, 14:21   #8
TricksterWolf
Scout
 
Join Date: Sep 2012
Posts: 43
TricksterWolf is on a distinguished road
Alright, I've decided I'm probably going to use z_info->s_max to keep track of the total spell number, because 0) I can't figure out how to get the parser to hoof me a reference to the final spell parsed without an ugly hack, and 1) it looks like z_info->s_max is totally unused, which is weird.

Oh, parser. You are so magical.

EDIT: It's working, though for some reason my spells are loaded into m_info in reverse order.

I should probably be doing some cleanup, like declaring an array of magic_spell and copying the spell data in and attaching m_info to the array. I don't think it matters, though, because I never use m_info once all of the objects have been parsed (the objects have a separate linked list of magic spells with pointers copied from m_info).

Last edited by TricksterWolf; September 20, 2015 at 20:05.
TricksterWolf is offline   Reply With Quote