mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Fixed a container overflow in ViewController that could lead to a rare crash when using an ARM processor
This commit is contained in:
parent
60b958665f
commit
f8dc7559ce
|
@ -885,7 +885,7 @@ std::shared_ptr<GamelistView> ViewController::getGamelistView(SystemData* system
|
||||||
if (overrides.find(ThemeTriggers::TriggerType::NO_MEDIA) != overrides.end()) {
|
if (overrides.find(ThemeTriggers::TriggerType::NO_MEDIA) != overrides.end()) {
|
||||||
noMediaTriggerType = ThemeTriggers::TriggerType::NO_MEDIA;
|
noMediaTriggerType = ThemeTriggers::TriggerType::NO_MEDIA;
|
||||||
|
|
||||||
for (auto& imageType : overrides.at(ThemeTriggers::TriggerType::NO_MEDIA).second) {
|
for (auto imageType : overrides.at(ThemeTriggers::TriggerType::NO_MEDIA).second) {
|
||||||
for (auto it = files.cbegin(); it != files.cend(); ++it) {
|
for (auto it = files.cbegin(); it != files.cend(); ++it) {
|
||||||
if (imageType == "miximage") {
|
if (imageType == "miximage") {
|
||||||
if (!(*it)->getMiximagePath().empty()) {
|
if (!(*it)->getMiximagePath().empty()) {
|
||||||
|
|
Loading…
Reference in a new issue