Increment the ref_count of SPL* sprites in that table.
Increment the ref_count of the books in the table at VA: 0x004D1A40
Code:
struct // sizeof 0x34
{
DWORD ref_count;
char name[32?];
unknown
}
<0, 'MT_None', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0>
<0, 'Battle', 28h, 0, 0, 0, 0, 0, 0, 0, 28h, 2, 2, 1, 1, 1, 2, 3>
<0, 'MT_ItemMagicMesh', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0>
<0, 'Bright', 14h, 0, 0, 0, 0, 0, 0, 0, 14h, 14h, 1, 1, 0, 0, 0, 0>
<0, 'Ice', 10h, 0, 0, 0, 0, 0, 0, 0, 1, 4, 4, 4, 4, 0, 0, 0>
<0, 'Green', 10h, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0>
<0, 'Dark', 10h, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0>
previous discussion over here:
http://forum.dark-omen.org/singleplayer/changin-spells-in-spellbook-t759.0.html
the CTL op add_spell by itself does not load up necessary "stuff"