From bd3def718123afa97482c40cf44fc0cc1dafef30 Mon Sep 17 00:00:00 2001 From: Reaver Date: Thu, 15 Jul 2021 02:54:04 +0300 Subject: [PATCH] APM3 Bookkeeping fix APM3 Bookkeeping fix --- OpenParrot/src/Functions/Games/APM3/APM3.cpp | 1 + 1 file changed, 1 insertion(+) 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; }