mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 03:43:15 +08:00
fix(stat_editor): ensure we don't dereference a nullptr
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user