Skip to content

Commit 27e340c

Browse files
committed
Add log limit for CPedSA::GetBonePosition logging
1 parent 3d1b87a commit 27e340c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Client/game_sa/CPedSA.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,13 @@ CVector* CPedSA::GetBonePosition(eBone bone, CVector* vecPosition)
516516
// 2> GetAnimHierarchyFromSkinClump (0x734A40) -> 0x734A58
517517
// 3> CPed::GetBonePosition (0x5E4280) -> 0x5E42AD
518518
// 4> CPedSA::GetBonePosition
519-
LogEvent(850, "Model not loaded", "CPedSA::GetBonePosition", SString("No RwObject for model:%d", entity->m_nModelIndex), 5420);
519+
static int limiter = 0;
520+
521+
if (limiter < 10)
522+
{
523+
LogEvent(850, "Model not loaded", "CPedSA::GetBonePosition", SString("No RwObject for model:%d", entity->m_nModelIndex), 5420);
524+
++limiter;
525+
}
520526
}
521527
else
522528
{

0 commit comments

Comments
 (0)