EQEmulator Forums

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

Emuman2098 06-05-2005 01:28 AM

Database.cpp
 
Was looking at database.cpp for some help with item serialization, and what order the columns went in, not sure why but it seems my database reads item data from the serialization and it never seemed to before, anyways i came across this:

Quote:

item.Common.BaneDmgAmt = (sint8)atoi(row[ItemField::banedmgbody]);
at line 4125, not even sure if its not supposed to be this way but i would think, to be like every other one listed it would be like :

Quote:

item.Common.BaneDmgAmt = (sint8)atoi(row[ItemField::banedmgamt]);
i dont have much programming skill, but it seems the others follow that order?

Doodman 06-06-2005 03:54 AM

Yup, looks like a copy/paste bug.

I wonder which lazy programmer did that one.. 8-)

Cisyouc 06-07-2005 07:13 AM

Causes of Bugs in Development
1. Copy/Paste


All times are GMT -4. The time now is 11:05 PM.

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