]> git.localhorst.tv Git - l2e.git/commitdiff
tackled some problems (not all :) )
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 10 Sep 2012 20:55:07 +0000 (22:55 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 10 Sep 2012 20:55:07 +0000 (22:55 +0200)
src/common/Ikari.cpp
src/common/TargetingMode.cpp
src/loader/utility.cpp
src/main.cpp

index 604ca5b8032dbc1a8675ec0790579a90a01a30c5..8ed8698af9112a3e0c0d1ae37c60e4cb14091fcb 100644 (file)
@@ -37,7 +37,7 @@ void Ikari::CreateTypeDescription() {
        td.AddField("name", FieldDescription(((char *)&i.name) - ((char *)&i), stringId, true));
        td.AddField("cost", FieldDescription(((char *)&i.cost) - ((char *)&i), numberId, false));
        td.AddField("targets", FieldDescription(((char *)&i.targetingMode) - ((char *)&i), targetsId, false));
-       td.AddField("type", FieldDescription(((char *)&i.isPhysical) - ((char *)&i), boolId, true));
+       td.AddField("type", FieldDescription(((char *)&i.isPhysical) - ((char *)&i), boolId, false));
 }
 
 void Ikari::Construct(void *data) {
index 476358883cec415de445248cfec016f2453d87ea..0a092e2dbaf714d7369c3691e6c99470e4aaea2d 100644 (file)
@@ -24,8 +24,8 @@ void TargetingMode::CreateTypeDescription() {
        td.SetConstructor(&Construct);
        td.SetSize(sizeof(TargetingMode));
 
-       td.AddField("faction", FieldDescription(((char *)&t.ally) - ((char *)&t), boolId, true));
-       td.AddField("mode", FieldDescription(((char *)&t.mode) - ((char *)&t), numberId, true));
+       td.AddField("faction", FieldDescription(((char *)&t.ally) - ((char *)&t), boolId, false));
+       td.AddField("mode", FieldDescription(((char *)&t.mode) - ((char *)&t), numberId, false));
 }
 
 void TargetingMode::Construct(void *data) {
index ee88ea0d0dc880a20126d38c87a81085c08a6b4c..f5011e6fe243ea97685ffefab3eb7421b93d8aa2 100644 (file)
@@ -20,7 +20,7 @@ string Dirname(const string &path) {
        std::memcpy(str, path.c_str(), path.size());
        str[path.size()] = '\0';
        string dn(dirname(str));
-       delete str;
+       delete[] str;
        return dn;
 }
 
index 6be5e7ceeba8a92487b2f4637b0e27305066b999..2c8096225135354f911130e2d116798945fdecaf 100644 (file)
@@ -89,6 +89,7 @@ int main(int argc, char **argv) {
                Gauge::CreateTypeDescription();
                Hero::CreateTypeDescription();
                Ikari::CreateTypeDescription();
+               Interpreter::CreateTypeDescriptions();
                Item::CreateTypeDescription();
                graphics::MenuProperties::CreateTypeDescription();
                PartyLayout::CreateTypeDescription();