summaryrefslogtreecommitdiff
path: root/library/VTableInterpose.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-09-18 10:40:14 +0400
committerAlexander Gavrilov2012-09-18 10:40:14 +0400
commitbe928a9dc537290522577cde41211637f3b6f165 (patch)
treedf1265a04ea9dda568fbf5813a1fe2664e67e047 /library/VTableInterpose.cpp
parent2c0a8a9544f81834b0a6e7ac9bf78db8aa5008d1 (diff)
downloaddfhack-be928a9dc537290522577cde41211637f3b6f165.tar.gz
dfhack-be928a9dc537290522577cde41211637f3b6f165.tar.bz2
dfhack-be928a9dc537290522577cde41211637f3b6f165.tar.xz
Fix a data structure integrity bug in VMethodInterposeLinkBase.
This causes assertion failure and abort later on.
Diffstat (limited to 'library/VTableInterpose.cpp')
-rw-r--r--library/VTableInterpose.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/VTableInterpose.cpp b/library/VTableInterpose.cpp
index 583ef518..04642565 100644
--- a/library/VTableInterpose.cpp
+++ b/library/VTableInterpose.cpp
@@ -438,6 +438,8 @@ void VMethodInterposeLinkBase::remove()
if (next)
prev->child_next.insert(next);
+ else
+ prev->child_hosts.insert(host);
}
}