Fix for potential nullptr when using base lua class constructors in debug mode, also added eq.get_qglobals and removed automatic export of them (will do this for a lot of other automatic exports)

This commit is contained in:
KimLS
2013-06-04 16:48:32 -07:00
parent 85c7e1b059
commit 1b290b577d
16 changed files with 58 additions and 44 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ class Lua_Item : public Lua_Ptr<const void>
typedef const Item_Struct NativeType;
public:
Lua_Item(uint32 item_id);
Lua_Item() { }
Lua_Item() : Lua_Ptr(nullptr) { }
Lua_Item(const Item_Struct *d) : Lua_Ptr(d) { }
virtual ~Lua_Item() { }