TITANIC: Fix some warnings

This commit is contained in:
Paul Gilbert 2016-07-23 12:11:09 -04:00
parent 8a6a5cebfb
commit c918602800
3 changed files with 6 additions and 8 deletions

View File

@ -127,9 +127,7 @@ public:
/**
* Compares the name of the item to a passed name
*/
virtual int compareTo(const CString &name, int maxLen) const { return false; }
virtual int proc23() const { return 0; }
virtual int compareTo(const CString &name, int maxLen = 0) const { return false; }
/**
* Returns the clip list, if any, associated with the item

View File

@ -125,10 +125,10 @@ SaveStateList TitanicMetaEngine::listSaves(const char *target) const {
Common::InSaveFile *in = g_system->getSavefileManager()->openForLoading(*file);
if (in) {
Titanic::CompressedFile file;
file.open(in);
Titanic::CompressedFile cf;
cf.open(in);
if (Titanic::CProjectItem::readSavegameHeader(&file, header))
if (Titanic::CProjectItem::readSavegameHeader(&cf, header))
saveList.push_back(SaveStateDescriptor(slot, header._saveName));
if (header._thumbnail) {
@ -136,7 +136,7 @@ SaveStateList TitanicMetaEngine::listSaves(const char *target) const {
delete header._thumbnail;
}
file.close();
cf.close();
}
}
}

View File

@ -110,7 +110,7 @@ void CStarField::toggle4() {
bool CStarField::set4(bool val) {
bool oldVal = _val4;
_val4 = val;
return val;
return oldVal;
}
int CStarField::get88() const {