We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ForEachItem()
1 parent b49bf79 commit 37e7b12Copy full SHA for 37e7b12
reapi/include/cssdk/dlls/player.h
@@ -383,10 +383,11 @@ class CBasePlayer: public CBaseMonster
383
auto item = m_rgpPlayerItems[ slot ];
384
while (item)
385
{
386
+ auto next = item->m_pNext;
387
if (func(static_cast<T *>(item)))
388
return static_cast<T *>(item);
389
- item = item->m_pNext;
390
+ item = next;
391
}
392
return nullptr;
393
@@ -397,10 +398,11 @@ class CBasePlayer: public CBaseMonster
397
398
399
400
401
402
403
404
405
406
407
408
0 commit comments