From e26b6269f19ba6fba5f6c4b146824db5767e897e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 25 May 2010 04:16:24 +0200 Subject: [PATCH] Fixed Context::isValid again, added constructions to linux 31.04 --- dfhack/DFContext.cpp | 4 +++- output/Memory.xml | 9 ++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/dfhack/DFContext.cpp b/dfhack/DFContext.cpp index 9406186df..9013c5659 100644 --- a/dfhack/DFContext.cpp +++ b/dfhack/DFContext.cpp @@ -66,7 +66,9 @@ Context::~Context() bool Context::isValid() { //FIXME: check for error states here - if(d->p->isIdentified()); + if(d->p->isIdentified()) + return true; + return false; } bool Context::Attach() diff --git a/output/Memory.xml b/output/Memory.xml index 96589944b..467145962 100755 --- a/output/Memory.xml +++ b/output/Memory.xml @@ -1824,14 +1824,13 @@ map_data_1b60_offset 0x1B9c WORLD + 0x54E80
24
0x4C -