diff --git a/rpcs3/Emu/RSX/GL/GLFragmentProgram.cpp b/rpcs3/Emu/RSX/GL/GLFragmentProgram.cpp index 9f364c7d2f..68c52d5a63 100644 --- a/rpcs3/Emu/RSX/GL/GLFragmentProgram.cpp +++ b/rpcs3/Emu/RSX/GL/GLFragmentProgram.cpp @@ -127,7 +127,7 @@ void GLFragmentDecompilerThread::insertConstants(std::stringstream & OS) for (const ParamItem& PI : PT.items) { std::string samplerType = PT.type; - int index = atoi(&PI.name.data()[3]); + int index = atoi(&PI.name[3]); const auto mask = (1 << index); diff --git a/rpcs3/Emu/RSX/VK/VKFragmentProgram.cpp b/rpcs3/Emu/RSX/VK/VKFragmentProgram.cpp index ed5bf1e416..c4f89e61cd 100644 --- a/rpcs3/Emu/RSX/VK/VKFragmentProgram.cpp +++ b/rpcs3/Emu/RSX/VK/VKFragmentProgram.cpp @@ -126,7 +126,7 @@ void VKFragmentDecompilerThread::insertConstants(std::stringstream & OS) for (const ParamItem& PI : PT.items) { std::string samplerType = PT.type; - int index = atoi(&PI.name.data()[3]); + int index = atoi(&PI.name[3]); const auto mask = (1 << index);