EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=590)
-   -   common/classes.cpp (https://www.eqemulator.org/forums/showthread.php?t=20651)

aza77 05-19-2006 10:21 PM

common/classes.cpp
 
shouldn't it be
int8 GetEQArrayEQClass(int8 eqclass) {
if (eqclass >= WARRIOR && eqclass <= BERSERKER)
return eqclass - WARRIOR;
if (eqclass >= WARRIORGM && eqclass <= BERSERKERGM)
return eqclass - WARRIORGM;
return WARRIOR;
}
at line 332

instead of
int8 GetEQArrayEQClass(int8 eqclass) {
if (eqclass >= WARRIOR && eqclass <= BEASTLORD)
return eqclass - WARRIOR;
if (eqclass >= WARRIORGM && eqclass <= BEASTLORDGM)
return eqclass - WARRIORGM;
return WARRIOR;
}

fathernitwit 05-20-2006 10:40 AM

hmm... looks fine, will make the change. thats only used for spell casting, and it looks like the spell loading code was already updated to handle them, so we'll see how it goes. Items on the other hand store the "berserker allowed" bit in a different way (seperate field), in case you wander over there too.


All times are GMT -4. The time now is 04:49 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.