WINTERMUTE: Correct 2 savegame-issues

This commit is contained in:
Einar Johan Trøan Sømåen 2012-07-19 18:11:23 +02:00
parent 9c0aff9d8b
commit 73feff111a
2 changed files with 2 additions and 1 deletions

View File

@ -404,9 +404,9 @@ Common::String CBPersistMgr::getStringObj() {
char *ret = new char[len + 1];
_loadStream->read(ret, len);
ret[len] = '\0';
delete[] ret;
Common::String retString = ret;
delete[] ret;
if (retString == "(null)") {
retString = "";

View File

@ -38,6 +38,7 @@ namespace WinterMute {
//////////////////////////////////////////////////////////////////////////
CSysClassRegistry::CSysClassRegistry() {
_count = 0;
_disabled = false;
}