diff options
author | Max Horn | 2010-07-01 16:04:48 +0000 |
---|---|---|
committer | Max Horn | 2010-07-01 16:04:48 +0000 |
commit | 36799dc83f59674de8956ea2ec29029783633f45 (patch) | |
tree | 9ec0125138383f900c2bcdac1a7c6cf8203efb58 /engines/sci/engine/seg_manager.cpp | |
parent | 3f429d64a2ef826782bf9af8971ba397b0e2743c (diff) | |
download | scummvm-rg350-36799dc83f59674de8956ea2ec29029783633f45.tar.gz scummvm-rg350-36799dc83f59674de8956ea2ec29029783633f45.tar.bz2 scummvm-rg350-36799dc83f59674de8956ea2ec29029783633f45.zip |
SCI: Add SegManager::getSystemString() method
svn-id: r50550
Diffstat (limited to 'engines/sci/engine/seg_manager.cpp')
-rw-r--r-- | engines/sci/engine/seg_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/seg_manager.cpp b/engines/sci/engine/seg_manager.cpp index 517e723d40..a5cfc5013b 100644 --- a/engines/sci/engine/seg_manager.cpp +++ b/engines/sci/engine/seg_manager.cpp @@ -85,7 +85,7 @@ void SegManager::initSysStrings() { _sysStrings = (SystemStrings *)allocSegment(new SystemStrings(), &_sysStringsSegId); // Allocate static buffer for savegame and CWD directories - SystemString *strSaveDir = &_sysStrings->_strings[SYS_STRING_SAVEDIR]; + SystemString *strSaveDir = getSystemString(SYS_STRING_SAVEDIR); strSaveDir->_name = "savedir"; strSaveDir->_maxSize = MAX_SAVE_DIR_SIZE; strSaveDir->_value = (char *)calloc(MAX_SAVE_DIR_SIZE, sizeof(char)); @@ -94,7 +94,7 @@ void SegManager::initSysStrings() { ::strcpy(strSaveDir->_value, ""); // Allocate static buffer for the parser base - SystemString *strParserBase = &_sysStrings->_strings[SYS_STRING_PARSER_BASE]; + SystemString *strParserBase = getSystemString(SYS_STRING_PARSER_BASE); strParserBase->_name = "parser-base"; strParserBase->_maxSize = MAX_PARSER_BASE; strParserBase->_value = (char *)calloc(MAX_PARSER_BASE, sizeof(char)); |