]> git.localhorst.tv Git - l2e.git/commitdiff
fix substantial mistake in linker
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 15 Mar 2013 20:40:20 +0000 (21:40 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 15 Mar 2013 20:40:20 +0000 (21:40 +0100)
:o

src/loader/Compiler.cpp

index bb96b28728ecf82e1abb03fbb195722eb02dec83..95d41ccadceb3ab6a5dc3b558cb1ceaa2716463c 100644 (file)
@@ -193,7 +193,7 @@ void Compiler::Relocate(iostream &out) {
                Object object;
                out.read(reinterpret_cast<char *>(&object), sizeof(Object));
                const TypeDescription &td = TypeDescription::Get(object.typeId);
-               if (td.NeedsLinking()) {
+               if (!td.NeedsLinking()) {
                        out.seekg(object.size, iostream::cur);
                        continue;
                }