diff options
| author | Nipun Garg | 2019-07-14 03:25:57 +0530 |
|---|---|---|
| committer | Eugene Sandulenko | 2019-09-03 17:17:20 +0200 |
| commit | 779f455292c5d1ec31df2c9962a8d56bbce280aa (patch) | |
| tree | 3a4da613841f75b2ee384af47bc5318ed49a2c65 | |
| parent | a3ba287c1e45b39b9401601eaa04177cdf0b921c (diff) | |
| download | scummvm-rg350-779f455292c5d1ec31df2c9962a8d56bbce280aa.tar.gz scummvm-rg350-779f455292c5d1ec31df2c9962a8d56bbce280aa.tar.bz2 scummvm-rg350-779f455292c5d1ec31df2c9962a8d56bbce280aa.zip | |
HDB: Add temp variable to store Map name
| -rw-r--r-- | engines/hdb/ai-cinematic.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp index f0ff15adf8..414aa9374d 100644 --- a/engines/hdb/ai-cinematic.cpp +++ b/engines/hdb/ai-cinematic.cpp @@ -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: |
