mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-07-18 01:41:02 +00:00
Avoid out-of-bounds array access when checking custom color for TV Remote (#4356)
This commit is contained in:
@@ -201,6 +201,9 @@ public:
|
||||
controller_override_colors[i] = {r, g, b};
|
||||
}
|
||||
static std::optional<Colour> GetControllerCustomColor(s32 i) {
|
||||
if (i >= controller_override_colors.size()) {
|
||||
return {};
|
||||
}
|
||||
return controller_override_colors[i];
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user