Skip to content

Commit 2c243df

Browse files
committed
Do not use shared_str directly on printf
1 parent 6d2f0f9 commit 2c243df

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/xrGame/GameObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ BOOL CGameObject::net_Spawn(CSE_Abstract* DC)
465465
//R_ASSERT(Level().Objects.net_Find(E->ID) == nullptr);
466466
if (Level().Objects.net_Find(E->ID) != nullptr)
467467
{
468-
GEnv.ScriptEngine->script_log(LuaMessageType::Error, "CGameObject:net_Spawn() | Level().Objects.net_Find(E->ID) != nullptr (This mean object already exist on level by this ID) ID=%s s_name=%s", E->ID, E->s_name);
468+
GEnv.ScriptEngine->script_log(LuaMessageType::Error, "CGameObject:net_Spawn() | Level().Objects.net_Find(E->ID) != nullptr (This mean object already exist on level by this ID) ID=%s s_name=%s", E->ID, E->s_name.c_str());
469469
return false;
470470
}
471471
}

src/xrGame/ini_table_loader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ typename CSIni_Table::ITEM_TABLE& CSIni_Table::table()
106106
T_INI_LOADER::IdToIndex((*i).first, type_max<typename T_INI_LOADER::index_type>);
107107

108108
if (type_max<typename T_INI_LOADER::index_type> == cur_index)
109-
xrDebug::Fatal(DEBUG_INFO, "wrong community %s in section [%s]", (*i).first, table_sect);
109+
xrDebug::Fatal(DEBUG_INFO, "wrong community %s in section [%s]", (*i).first.c_str(), table_sect);
110110

111111
(*m_pTable)[cur_index].resize(cur_table_width);
112112
for (std::size_t j = 0; j < cur_table_width; j++)

src/xrGame/ui/UIInvUpgradeProperty.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ void UIInvUpgPropertiesWnd::init_from_xml(LPCSTR xml_name)
175175
property_id._set((*ib).first);
176176
if (!ui_property->init_property(property_id))
177177
{
178-
Msg("! Invalid property <%s> in inventory upgrade manager!", property_id);
178+
Msg("! Invalid property <%s> in inventory upgrade manager!", property_id.c_str());
179179
continue;
180180
}
181181

src/xrGame/ui/UITalkWnd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ void CUITalkWnd::AskQuestion()
261261
{
262262
string128 s;
263263
xr_sprintf(s, "ID = [%s] of selected question is out of range of available dialogs ",
264-
UITalkDialogWnd->m_ClickedQuestionID);
264+
UITalkDialogWnd->m_ClickedQuestionID.c_str());
265265
VERIFY2(FALSE, s);
266266
}
267267

0 commit comments

Comments
 (0)