X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Floader%2FInterpreter.cpp;h=3cb0d452a755b4f36b0345912026564e310b395c;hb=8ef435410d1f8aff339e4afef87a5757e77eba45;hp=ecbb076224e225bad82cd92017c4db9d5caa33fc;hpb=1970312e983541d32d4ff73c81b8d90156a7bb99;p=l2e.git diff --git a/src/loader/Interpreter.cpp b/src/loader/Interpreter.cpp index ecbb076..3cb0d45 100644 --- a/src/loader/Interpreter.cpp +++ b/src/loader/Interpreter.cpp @@ -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(array.data); if (i->second->GetLiteral().GetType() == Literal::ARRAY_PROPS) { const vector &list(i->second->GetLiteral().GetPropertyLists());