You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(!this->itms.empty()) for(s32 i = 0; i < this->itms.size(); i++)
{
if(i == this->isel) this->selfact = 0;
elseif(i == this->previsel) this->pselfact = 255;
}
This code is essentially checking if this->isel and this->previsel (whatever those are) are in range of 0 to itms.size(), no need to iterate. (It also should always be in range?)
Iterating maps is unnecessary and a loss of performance, especially if a map size gets large.
For this example:
Plutonium/Plutonium/Source/pu/ui/render/render_SDL2.cpp
Lines 35 to 38 in 0fefac2
Consider something like:
The text was updated successfully, but these errors were encountered: