PDA

View Full Version : Database.cpp


Emuman2098
06-05-2005, 01:28 AM
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:

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 :

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