From bdc22b4052f1d5c439888970da1b97b6f4a1f8ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Thu, 25 Feb 2010 15:33:13 +0100 Subject: [PATCH] leftovers --- library/DFMemInfo.cpp | 6 ++++-- library/DFMemInfo.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/library/DFMemInfo.cpp b/library/DFMemInfo.cpp index 54876fbc8..b7bdb3dcd 100644 --- a/library/DFMemInfo.cpp +++ b/library/DFMemInfo.cpp @@ -63,12 +63,14 @@ class memory_info::Private // storage for class and multiclass vector classes; - //vector > classsubtypes; + // cache for faster name lookup, indexed by classID vector classnames; + // index for the next added class + uint32_t classindex; int32_t base; - uint32_t classindex; + string version; OSType OS; }; diff --git a/library/DFMemInfo.h b/library/DFMemInfo.h index 2b7146688..52191522c 100644 --- a/library/DFMemInfo.h +++ b/library/DFMemInfo.h @@ -54,7 +54,7 @@ namespace DFHack vtable = old.vtable; assign = old.assign; type_offset = old.type_offset; - for(int i = 0; i < old.subs.size();i++) + for(uint32_t i = 0; i < old.subs.size();i++) { t_type * t = new t_type (*old.subs[i]); subs.push_back(t);