Fixes sign-compare warnings

This commit is contained in:
Marcus Minhorst 2025-07-18 18:47:44 -04:00 committed by Ricardo Luís Vaz Silva
commit 9b0f5d9b0d
41 changed files with 109 additions and 108 deletions

View file

@ -524,7 +524,7 @@ DEFINE_ACTION_FUNCTION(_PlayerInfo, SetSkin)
{
PARAM_SELF_STRUCT_PROLOGUE(player_t);
PARAM_INT(skinIndex);
if (skinIndex >= 0 && skinIndex < Skins.size())
if (skinIndex >= 0 && skinIndex < Skins.SSize())
{
// commented code - cvar_set calls this automatically, along with saving the skin selection.
//self->userinfo.SkinNumChanged(skinIndex);