summaryrefslogtreecommitdiff
path: root/library/DataDefs.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-03-26 12:42:05 +0400
committerAlexander Gavrilov2012-03-26 12:42:05 +0400
commit157f23be5c115a1cb6c16d797f6f3ea86029b687 (patch)
tree435df5cac01bf81ba31b5dbe82f5245d91fdea4b /library/DataDefs.cpp
parent00a5bfcf3ee71f9891b47f6f039a81cdaebb7316 (diff)
downloaddfhack-157f23be5c115a1cb6c16d797f6f3ea86029b687.tar.gz
dfhack-157f23be5c115a1cb6c16d797f6f3ea86029b687.tar.bz2
dfhack-157f23be5c115a1cb6c16d797f6f3ea86029b687.tar.xz
Fix warnings.
Diffstat (limited to 'library/DataDefs.cpp')
-rw-r--r--library/DataDefs.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/DataDefs.cpp b/library/DataDefs.cpp
index 755477d4..cf8a32fc 100644
--- a/library/DataDefs.cpp
+++ b/library/DataDefs.cpp
@@ -65,7 +65,10 @@ void *type_identity::allocate() {
bool type_identity::copy(void *tgt, const void *src) {
if (can_allocate() && tgt && src)
+ {
do_copy(tgt, src);
+ return true;
+ }
else
return false;
}