From 571bb914f5571dad77195741570f0f866793ada4 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 20 Sep 2019 09:44:32 +0200 Subject: [PATCH] cellPad: fix out of bounds warning --- rpcs3/Emu/Cell/Modules/cellPad.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/cellPad.cpp b/rpcs3/Emu/Cell/Modules/cellPad.cpp index 49f93f86ab..49d84306b6 100644 --- a/rpcs3/Emu/Cell/Modules/cellPad.cpp +++ b/rpcs3/Emu/Cell/Modules/cellPad.cpp @@ -301,7 +301,7 @@ error_code cellPadGetData(u32 port_no, vm::ptr data) { // report back new data every ~10 ms even if the input doesn't change // this is observed behaviour when using a Dualshock 3 controller - static std::chrono::time_point last_update[CELL_PAD_MAX_PORT_NUM] = { }; + static std::array, CELL_PAD_MAX_PORT_NUM> last_update = { }; const std::chrono::time_point now = steady_clock::now(); if (btnChanged || pad->m_buffer_cleared || (std::chrono::duration_cast(now - last_update[port_no]).count() >= 10))