Page 1 of 1
Gem 9
Posted: Wed Sep 15, 2004 8:11 am
by No_Idea_At_All
It appears that Gem 9 returns NULL. ${Me.Gem[9]}
Posted: Wed Sep 15, 2004 10:13 am
by Amadeus
In MQ2DataTypes.cpp -- line 1551, change the line to read:
...tell me if that fixes it.
Posted: Wed Sep 15, 2004 11:21 am
by Cr4zyb4rd
8 needs to be changed to 9 at other various places in MQ2DataTypes
(lines 1563, 1965, 1974 in my source, might be one or two lines off from release source)
also in MQ2Commands in functions MemSpell, LoadSpells, and Cast
lastly EQUIStructs.h in EQCASTSPELLWINDOW (0x8 to 0x9)
That's what I found in my full sweep of the source, but I only looked for things that were checking 0-based arrays.
Posted: Wed Sep 15, 2004 11:28 am
by Amadeus
Not all the functions handle it the same. I had thought I went through most of them before, but I will double-check tonight.
Remember, Gem[0x8] is actually the ninth gem slot :) ...it's just that the code is sometimes altered to take arguments 1-9 instead of 0-8. So, it's just inconsistant throughout and I need to doublecheck them all.
The fix I gave should fix the one error that was reported by No_Idea_At_All.
Posted: Wed Sep 15, 2004 11:35 am
by Cr4zyb4rd
Remember, Gem[0x8] is actually the ninth gem slot :)
When I'm allocating the space for it...?
Perhaps you missed the last line of my post...or chose to ignore it...
edit: FWIW a define for MAX_SPELL_GEMS wouldn't be terribly out of line