From 4ff4fcf745e999de0e33fa57c6ade23159d75e90 Mon Sep 17 00:00:00 2001 From: Grinch_ Date: Mon, 5 Jul 2021 23:05:46 +0600 Subject: [PATCH] Fix crash in ped/spawn/config --- CheatMenu/Ped.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CheatMenu/Ped.cpp b/CheatMenu/Ped.cpp index dc2a1c8..5ed4d78 100644 --- a/CheatMenu/Ped.cpp +++ b/CheatMenu/Ped.cpp @@ -259,7 +259,7 @@ void Ped::Draw() ImGui::Spacing(); ImGui::Text("Selected weapon: %s", - Weapon::m_WeaponData.m_Json.m_Data[std::to_string(m_SpawnPed::m_nWeaponId)].get()); + Weapon::m_WeaponData.m_Json.m_Data[std::to_string(m_SpawnPed::m_nWeaponId)].get().c_str()); ImGui::Spacing(); Ui::DrawImages(Weapon::m_WeaponData.m_ImagesList, ImVec2(65, 65), Weapon::m_WeaponData.m_Categories, Weapon::m_WeaponData.m_Selected, Weapon::m_WeaponData.m_Filter,