HDB: Add temp variable to store Map name

This commit is contained in:
Nipun Garg 2019-07-14 03:25:57 +05:30 committed by Eugene Sandulenko
parent a3ba287c1e
commit 779f455292

View File

@ -66,6 +66,7 @@ void AI::processCines() {
AIEntity *e;
Picture *p;
const char *title;
bool complete, bailOut;
if (!_cineActive) {
@ -106,6 +107,7 @@ void AI::processCines() {
g_hdb->_lua->callFunction(func, 0);
break;
case C_STARTMAP:
title = _cine[i]->title;
cineFreeGfx(); // free all gfx alloc'ed during cine
_cineActive = false;
_playerLock = false;
@ -118,7 +120,7 @@ void AI::processCines() {
// if cine is aborted and an abort function was specified, call it
if (_cineAborted && _cineAbortFunc)
g_hdb->_lua->callFunction(_cineAbortFunc, 0);
g_hdb->changeMap(_cine[i]->title);
g_hdb->changeMap(title);
return;
break;
case C_LOCKPLAYER: