Make typecasting methods *really* safe and get rid of redundant typeId/Typemask checks, thanks Zor and Machiavelli for help

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-08-05 17:01:25 +02:00
parent 30194bdd61
commit c94046b065
6 changed files with 98 additions and 8 deletions
+3
View File
@@ -347,6 +347,9 @@ class Item : public Object
void BuildUpdate(UpdateDataMapType&);
Bag* ToBag();
const Bag* ToBag() const;
private:
std::string m_text;
uint8 m_slot;