mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
Fixed a nasty order of destruction bug, where the memory pool for ScriptInts was destroyed before the PackageManager
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@20 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include <util/prec.hpp>
|
||||
|
||||
DECLARE_INTRUSIVE_POINTER_TYPE(ScriptValue);
|
||||
DECLARE_INTRUSIVE_POINTER_TYPE(Script);
|
||||
inline void intrusive_ptr_add_ref(ScriptValue* p);
|
||||
inline void intrusive_ptr_release(ScriptValue* p);
|
||||
|
||||
@@ -54,6 +55,8 @@ class GetMember {
|
||||
template <typename T> void store(const shared_ptr<T>& pointer) {
|
||||
value = toScript(pointer);
|
||||
}
|
||||
void store(const ScriptValueP&);
|
||||
void store(const ScriptP&);
|
||||
|
||||
private:
|
||||
const String& targetName; ///< The name we are looking for
|
||||
|
||||
Reference in New Issue
Block a user