Revert changes done in r0074e32c2f and r4d86e4199a - fixes buildissues ( if()+reinterpret_cast is faster than dynamic_casts btw )
--HG-- branch : trunk
This commit is contained in:
@@ -257,16 +257,6 @@ Item::Item()
|
||||
m_paidExtendedCost = 0;
|
||||
}
|
||||
|
||||
inline Bag* Item::ToBag()
|
||||
{
|
||||
return dynamic_cast<Bag*>(this);
|
||||
}
|
||||
|
||||
inline const Bag* Item::ToBag() const
|
||||
{
|
||||
return dynamic_cast<const Bag*>(this);
|
||||
}
|
||||
|
||||
bool Item::Create(uint32 guidlow, uint32 itemid, Player const* owner)
|
||||
{
|
||||
Object::_Create(guidlow, 0, HIGHGUID_ITEM);
|
||||
|
||||
@@ -347,9 +347,6 @@ class Item : public Object
|
||||
|
||||
void BuildUpdate(UpdateDataMapType&);
|
||||
|
||||
Bag* ToBag();
|
||||
const Bag* ToBag() const;
|
||||
|
||||
private:
|
||||
std::string m_text;
|
||||
uint8 m_slot;
|
||||
|
||||
Reference in New Issue
Block a user