mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
TITANIC: Fix some warnings
This commit is contained in:
parent
8a6a5cebfb
commit
c918602800
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user