From cecaac514ead3aa1a0eb9473fd526819012d7823 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 18 Jun 2019 18:53:49 +0200 Subject: HDB: Initialise CineCommand --- engines/hdb/ai.cpp | 2 +- engines/hdb/ai.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/hdb/ai.cpp b/engines/hdb/ai.cpp index e4d045872c..182401dc1a 100644 --- a/engines/hdb/ai.cpp +++ b/engines/hdb/ai.cpp @@ -85,7 +85,7 @@ void AI::processCines() { for (uint i = 0; i < _cine.size();i++) { debug(3, "processCines: [%d] %s now: %d start: %d delay: %d", i, cineTypeStr[_cine[i]->cmdType], - _cine[i]->start, _cine[i]->delay); + g_system->getMillis(), _cine[i]->start, _cine[i]->delay); switch (_cine[i]->cmdType) { case C_SETCAMERA: diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index bf02b46e72..d016c8fa88 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -77,6 +77,9 @@ struct CineCommand { char *string; char *id; // AIEntity *entity + + CineCommand() : cmdType(C_NO_COMMAND), x(0.0), y(0.0), x2(0.0), y2(0.0), xv(0.0), yv(0.0), + start(0), end(0), delay(0), speed(0), title(NULL), string(NULL), id(NULL) {} }; class AI { -- cgit v1.2.3