]> git.localhorst.tv Git - l2e.git/blobdiff - src/loader/Interpreter.cpp
support for arrays containing (yet) undefined references
[l2e.git] / src / loader / Interpreter.cpp
index ecbb076224e225bad82cd92017c4db9d5caa33fc..3cb0d452a755b4f36b0345912026564e310b395c 100644 (file)
@@ -337,6 +337,7 @@ void Interpreter::ReadObject(int typeId, int id, char *object, const PropertyLis
                                array.data = alloc.Alloc(array.size);
                                array.ref = fd.IsReferenced();
                                arrays.push_back(array);
+                               std::memset(array.data, 0, array.size);
                                char *iter = reinterpret_cast<char *>(array.data);
                                if (i->second->GetLiteral().GetType() == Literal::ARRAY_PROPS) {
                                        const vector<PropertyList *> &list(i->second->GetLiteral().GetPropertyLists());