mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
PopupAttachmentInfo class: added missing initializations in constructor.
DragSelection class: added missing initialization in constructor. MERCPROFILEGEAR class: added missing copy constructor. WORLDITEM class: added missing copy constructor. BuildString class: added missing assignment operator. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8906 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -305,6 +305,24 @@ MERCPROFILEGEAR& MERCPROFILEGEAR::operator=(const MERCPROFILEGEAR& src) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
// Copy constructor
|
||||
MERCPROFILEGEAR::MERCPROFILEGEAR(const MERCPROFILEGEAR& src)
|
||||
{
|
||||
if (this != &src) {
|
||||
memcpy(this, &src, SIZEOF_MERCPROFILEGEAR_POD);
|
||||
inv = src.inv;
|
||||
iStatus = src.iStatus;
|
||||
iDrop = src.iDrop;
|
||||
iNumber = src.iNumber;
|
||||
lbe = src.lbe;
|
||||
lStatus = src.lStatus;
|
||||
invCnt = src.invCnt;
|
||||
lbeCnt = src.lbeCnt;
|
||||
PriceModifier = src.PriceModifier;
|
||||
AbsolutePrice = src.AbsolutePrice;
|
||||
}
|
||||
}
|
||||
|
||||
// Destructor
|
||||
MERCPROFILEGEAR::~MERCPROFILEGEAR( ) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user