game/server: fix some Asan issues

This commit is contained in:
nillerusr
2022-07-29 04:34:23 +03:00
parent d1ac11a5c7
commit 9c2c7e3529
4 changed files with 34 additions and 3 deletions
+2 -2
View File
@@ -111,7 +111,7 @@ public:
else
{
int result = 0;
for ( int i = pGroup->followers.Head(); i != pGroup->followers.InvalidIndex(); i = pGroup->followers.Next( i ) )
for ( intp i = pGroup->followers.Head(); i != pGroup->followers.InvalidIndex(); i = pGroup->followers.Next( i ) )
{
if ( pGroup->followers[i].hFollower && pGroup->followers[i].hFollower->ClassMatches( iszClassname ) )
{
@@ -131,7 +131,7 @@ public:
return 0;
}
int h = pGroup->followers.Head();
intp h = pGroup->followers.Head();
while( h != pGroup->followers.InvalidIndex() )
{