mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -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:
+3
-1
@@ -8,6 +8,7 @@
|
||||
|
||||
#include <data/field.hpp>
|
||||
#include <data/field/text.hpp>
|
||||
#include <util/error.hpp>
|
||||
|
||||
// ----------------------------------------------------------------------------- : Field
|
||||
|
||||
@@ -50,7 +51,8 @@ shared_ptr<Field> read_new<Field>(Reader& reader) {
|
||||
if (type == _("text")) {
|
||||
return new_shared<TextField>();
|
||||
} else {
|
||||
throw "TODO";
|
||||
//return new_shared<TextField>();
|
||||
throw ParseError(_("Unsupported field type: '") + type + _("'"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user