WINTERMUTE: Expand subtitles by string table

This commit is contained in:
Tobia Tesan 2014-02-06 00:42:22 +01:00
parent 647b721744
commit 6d16fdbf4a

View File

@ -27,7 +27,7 @@
*/
#include "engines/wintermute/video/video_subtitle.h"
#include "engines/wintermute/base/base_game.h"
namespace Wintermute {
//////////////////////////////////////////////////////////////////////////
@ -40,7 +40,7 @@ VideoSubtitle::VideoSubtitle(BaseGame *inGame): BaseClass(inGame) {
VideoSubtitle::VideoSubtitle(BaseGame *inGame, char *text, long startFrame, long endFrame): BaseClass(inGame) {
_text = new char[strlen(text) + 1];
strcpy(_text, text);
// _gameRef->m_StringTable->Expand(&this->text);
_gameRef->expandStringByStringTable(&_text);
_startFrame = startFrame;
_endFrame = endFrame;
}