Skip to content

Commit 27c6032

Browse files
committed
Rebuild ped for visual stats (in setPedStat)
1 parent b7f1468 commit 27c6032

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2352,6 +2352,11 @@ bool CStaticFunctionDefinitions::SetPedStat ( CClientEntity & Entity, ushort usS
23522352
return false;
23532353

23542354
Ped.SetStat ( usStat, fValue );
2355+
2356+
// Rebuild model if the stat is visual
2357+
if (usStat == 21 || usStat == 23)
2358+
Ped.RebuildModel();
2359+
23552360
return true;
23562361
}
23572362
return false;

0 commit comments

Comments
 (0)