STARK: Small fixing

This commit is contained in:
Douglas Liu
2018-06-13 22:02:01 +08:00
parent 6e4b140362
commit a32fbb173c
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -523,7 +523,7 @@ void Location::saveLoadCurrent(ResourceSerializer *serializer) {
Layer *Location::getLayerByName(const Common::String &name) {
for (uint i = 0; i < _layers.size(); ++i) {
if (_layers[i]->getName() == name) {
if (_layers[i]->getName().equalsIgnoreCase(name)) {
return _layers[i];
}
}
+3 -3
View File
@@ -58,7 +58,7 @@ public:
void addDiaryEntry(const Common::String &name);
/** Get and set the current diary page index */
uint32 getPageIndex() { return _pageIndex; };
uint32 getPageIndex() const { return _pageIndex; };
void setPageIndex(uint32 pageIndex) { _pageIndex = pageIndex; }
/** Add a FMV entry to the list of movies available to play from the diary */
@@ -70,8 +70,8 @@ public:
Common::String &getFMVTitle(uint index) { return _fmvEntries[index].title; }
/** Get info of added Diary entries */
uint countDiary() { return _diaryEntries.size(); }
Common::String &getDiary(uint index) { return _diaryEntries[index]; };
uint countDiary() const { return _diaryEntries.size(); }
Common::String &getDiary(uint index) { return _diaryEntries[index]; }
/** Start recording speech lines for a dialog */
void openDialog(const Common::String &title, const Common::String &characterName, int32 characterId);