diff --git a/OpenParrot/src/Functions/Games/APM3/APM3.cpp b/OpenParrot/src/Functions/Games/APM3/APM3.cpp index 1de4072..a3b0d19 100644 --- a/OpenParrot/src/Functions/Games/APM3/APM3.cpp +++ b/OpenParrot/src/Functions/Games/APM3/APM3.cpp @@ -821,6 +821,7 @@ SequenceBookkeeping* Sequence_getBookkeeping() if (_sequenceBookkeeping == nullptr) { _sequenceBookkeeping = (SequenceBookkeeping*)malloc(sizeof(SequenceBookkeeping)); + memset(_sequenceBookkeeping, 0, sizeof(SequenceBookkeeping)); } return _sequenceBookkeeping; }