Fix python wrapper

This commit is contained in:
Thomas Krijnen
2018-01-29 15:02:36 +01:00
parent bc64b339a7
commit 19d834b19e
2 changed files with 9 additions and 8 deletions
+6 -2
View File
@@ -52,8 +52,12 @@ public:
{}
IfcEntityInstanceData(const IfcParse::declaration* type)
: file(0), id_(0), type_(type), attributes_(0)
{}
: file(0), id_(0), type_(type), attributes_(new Argument*[getArgumentCount()])
{
for (size_t i = 0; i < getArgumentCount(); ++i) {
attributes_[i] = 0;
}
}
void load() const;