Fix crash in ped/spawn/config

This commit is contained in:
Grinch_ 2021-07-05 23:05:46 +06:00
parent 6518cd6471
commit 4ff4fcf745

View File

@ -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<std::string>());
Weapon::m_WeaponData.m_Json.m_Data[std::to_string(m_SpawnPed::m_nWeaponId)].get<std::string>().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,