fix(stat_editor): ensure we don't dereference a nullptr

This commit is contained in:
maybegreat48
2025-03-31 21:25:52 -04:00
parent 55629e4735
commit c05f73b6d8
@@ -123,7 +123,8 @@ namespace YimMenu::Submenus
if (ImGui::InputText("Name", stat_buf, sizeof(stat_buf)))
{
current_stat = Pointers.StatsMgr->GetStat(Joaat(stat_buf));
ReadStat(value, current_stat);
if (current_stat)
ReadStat(value, current_stat);
}
if (!current_stat)