mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-23 00:27:16 +00:00
[Bug Fix] Correct Forward Declaration compilation warning (#3176)
* [Bug Fix] Correct Forward Declaration compilation warning * no need for include
This commit is contained in:
1 parent
1ffdd4cb34
commit
a4e006fbfb
2 files changed
+9
-1
No files matched your search
@@ -17,6 +17,13 @@ Lua_ItemInst::Lua_ItemInst(int item_id, int charges) {
|
||||
cloned_ = true;
|
||||
}
|
||||
|
||||
Lua_ItemInst::~Lua_ItemInst() {
|
||||
if (cloned_) {
|
||||
EQ::ItemInstance *ptr = GetLuaPtrData();
|
||||
delete ptr;
|
||||
}
|
||||
}
|
||||
|
||||
Lua_ItemInst& Lua_ItemInst::operator=(const Lua_ItemInst& o) {
|
||||
if(o.cloned_) {
|
||||
cloned_ = true;
|
||||
|
||||
Reference in new issue
Block a user