Skip to content

Commit fd4cfb0

Browse files
Add default component variation handling
Fix #521 * Restore missing if(setDefault) actions
1 parent 71c16dc commit fd4cfb0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Solution/source/Submenus/PedComponentChanger.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ namespace sub
180180
thisPed.RequestControlOnce();
181181
SET_PED_RANDOM_COMPONENT_VARIATION(thisPed.GetHandle(), 0);
182182
return;
183+
}
184+
185+
if (setDefault) {
186+
thisPed.RequestControlOnce();
187+
SET_PED_DEFAULT_COMPONENT_VARIATION(thisPed.GetHandle());
188+
return;
183189
}
184190

185191
if (ComponentChanger_online_police_m) {

0 commit comments

Comments
 (0)