diff --git a/library/DataDefs.cpp b/library/DataDefs.cpp index 755477d47..cf8a32fcc 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; } diff --git a/library/include/RemoteTools.h b/library/include/RemoteTools.h index ea0937784..bccbb5e62 100644 --- a/library/include/RemoteTools.h +++ b/library/include/RemoteTools.h @@ -40,7 +40,7 @@ namespace df namespace DFHack { - class MaterialInfo; + struct MaterialInfo; using google::protobuf::RepeatedField; using google::protobuf::RepeatedPtrField;