Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2005, 01:28 AM
Emuman2098
Fire Beetle
 
Join Date: Apr 2005
Posts: 11
Default 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 = (sintatoi(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 = (sintatoi(row[ItemField::banedmgamt]);
i dont have much programming skill, but it seems the others follow that order?
Reply With Quote
  #2  
Old 06-06-2005, 03:54 AM
Doodman's Avatar
Doodman
Developer
 
Join Date: Aug 2003
Posts: 246
Default

Yup, looks like a copy/paste bug.

I wonder which lazy programmer did that one..
Reply With Quote
  #3  
Old 06-07-2005, 07:13 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Causes of Bugs in Development
1. Copy/Paste
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:41 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3