GUI: Fix Likely Incorrect Code Causing GCC Warnings
This commit is contained in:
parent
2a5429f947
commit
3e394d012d
1 changed files with 4 additions and 2 deletions
|
@ -1041,8 +1041,9 @@ void LauncherSimple::updateListing() {
|
||||||
|
|
||||||
if (description.empty()) {
|
if (description.empty()) {
|
||||||
Common::String gameid;
|
Common::String gameid;
|
||||||
if (!iter->_value.tryGetVal("gameid", gameid));
|
if (!iter->_value.tryGetVal("gameid", gameid)) {
|
||||||
gameid = iter->_key;
|
gameid = iter->_key;
|
||||||
|
}
|
||||||
|
|
||||||
description = Common::String::format("Unknown (target %s, gameid %s)", iter->_key.c_str(), gameid.c_str());
|
description = Common::String::format("Unknown (target %s, gameid %s)", iter->_key.c_str(), gameid.c_str());
|
||||||
}
|
}
|
||||||
|
@ -1461,8 +1462,9 @@ void LauncherGrid::updateListing() {
|
||||||
|
|
||||||
if (description.empty()) {
|
if (description.empty()) {
|
||||||
Common::String gameid;
|
Common::String gameid;
|
||||||
if (!iter->_value.tryGetVal("gameid", gameid));
|
if (!iter->_value.tryGetVal("gameid", gameid)) {
|
||||||
gameid = iter->_key;
|
gameid = iter->_key;
|
||||||
|
}
|
||||||
|
|
||||||
description = Common::String::format("Unknown (target %s, gameid %s)", iter->_key.c_str(), gameid.c_str());
|
description = Common::String::format("Unknown (target %s, gameid %s)", iter->_key.c_str(), gameid.c_str());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue