@@ -1128,7 +1128,7 @@ void CUIActorMenu::PropertiesBoxForAddon(PIItem item, bool& b_show)
11281128 if (item_in_slot_2 && item_in_slot_2->CanAttach (pScope))
11291129 {
11301130 shared_str str = StringTable ().translate (" st_attach_scope_to_pistol" );
1131- str. printf ( " %s %s" , str.c_str (), item_in_slot_2->m_name .c_str ());
1131+ xr_sprintf (str, " %s %s" , str.c_str (), item_in_slot_2->m_name .c_str ());
11321132 m_UIPropertiesBox->AddItem (str.c_str (), (void *)item_in_slot_2, INVENTORY_ATTACH_ADDON);
11331133 // m_UIPropertiesBox->AddItem( "st_attach_scope_to_pistol", (void*)item_in_slot_2,
11341134 // INVENTORY_ATTACH_ADDON );
@@ -1137,7 +1137,7 @@ void CUIActorMenu::PropertiesBoxForAddon(PIItem item, bool& b_show)
11371137 if (item_in_slot_3 && item_in_slot_3->CanAttach (pScope))
11381138 {
11391139 shared_str str = StringTable ().translate (" st_attach_scope_to_pistol" );
1140- str. printf ( " %s %s" , str.c_str (), item_in_slot_3->m_name .c_str ());
1140+ xr_sprintf (str, " %s %s" , str.c_str (), item_in_slot_3->m_name .c_str ());
11411141 m_UIPropertiesBox->AddItem (str.c_str (), (void *)item_in_slot_3, INVENTORY_ATTACH_ADDON);
11421142 // m_UIPropertiesBox->AddItem( "st_attach_scope_to_rifle", (void*)item_in_slot_3,
11431143 // INVENTORY_ATTACH_ADDON );
@@ -1151,7 +1151,7 @@ void CUIActorMenu::PropertiesBoxForAddon(PIItem item, bool& b_show)
11511151 if (item_in_slot_2 && item_in_slot_2->CanAttach (pSilencer))
11521152 {
11531153 shared_str str = StringTable ().translate (" st_attach_silencer_to_pistol" );
1154- str. printf ( " %s %s" , str.c_str (), item_in_slot_2->m_name .c_str ());
1154+ xr_sprintf (str, " %s %s" , str.c_str (), item_in_slot_2->m_name .c_str ());
11551155 m_UIPropertiesBox->AddItem (str.c_str (), (void *)item_in_slot_2, INVENTORY_ATTACH_ADDON);
11561156 // m_UIPropertiesBox->AddItem( "st_attach_silencer_to_pistol", (void*)item_in_slot_2,
11571157 // INVENTORY_ATTACH_ADDON );
@@ -1160,7 +1160,7 @@ void CUIActorMenu::PropertiesBoxForAddon(PIItem item, bool& b_show)
11601160 if (item_in_slot_3 && item_in_slot_3->CanAttach (pSilencer))
11611161 {
11621162 shared_str str = StringTable ().translate (" st_attach_silencer_to_pistol" );
1163- str. printf ( " %s %s" , str.c_str (), item_in_slot_3->m_name .c_str ());
1163+ xr_sprintf (str, " %s %s" , str.c_str (), item_in_slot_3->m_name .c_str ());
11641164 m_UIPropertiesBox->AddItem (str.c_str (), (void *)item_in_slot_3, INVENTORY_ATTACH_ADDON);
11651165 // m_UIPropertiesBox->AddItem( "st_attach_silencer_to_rifle", (void*)item_in_slot_3,
11661166 // INVENTORY_ATTACH_ADDON );
@@ -1174,7 +1174,7 @@ void CUIActorMenu::PropertiesBoxForAddon(PIItem item, bool& b_show)
11741174 if (item_in_slot_2 && item_in_slot_2->CanAttach (pGrenadeLauncher))
11751175 {
11761176 shared_str str = StringTable ().translate (" st_attach_gl_to_rifle" );
1177- str. printf ( " %s %s" , str.c_str (), item_in_slot_2->m_name .c_str ());
1177+ xr_sprintf (str, " %s %s" , str.c_str (), item_in_slot_2->m_name .c_str ());
11781178 m_UIPropertiesBox->AddItem (str.c_str (), (void *)item_in_slot_2, INVENTORY_ATTACH_ADDON);
11791179 // m_UIPropertiesBox->AddItem( "st_attach_gl_to_pistol", (void*)item_in_slot_2,
11801180 // INVENTORY_ATTACH_ADDON
@@ -1184,7 +1184,7 @@ void CUIActorMenu::PropertiesBoxForAddon(PIItem item, bool& b_show)
11841184 if (item_in_slot_3 && item_in_slot_3->CanAttach (pGrenadeLauncher))
11851185 {
11861186 shared_str str = StringTable ().translate (" st_attach_gl_to_rifle" );
1187- str. printf ( " %s %s" , str.c_str (), item_in_slot_3->m_name .c_str ());
1187+ xr_sprintf (str, " %s %s" , str.c_str (), item_in_slot_3->m_name .c_str ());
11881188 m_UIPropertiesBox->AddItem (str.c_str (), (void *)item_in_slot_3, INVENTORY_ATTACH_ADDON);
11891189 // m_UIPropertiesBox->AddItem( "st_attach_gl_to_rifle", (void*)item_in_slot_3,
11901190 // INVENTORY_ATTACH_ADDON
0 commit comments