mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-06 15:48:48 +00:00
Merge pull request #18 from Skylonxe/patch-1
Fix possible crash when GetPlayerInput() is nullptr on startup
This commit is contained in:
@@ -65,6 +65,12 @@ void FCogInputWindow_Actions::RenderContent()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(EnhancedInputSubsystem->GetPlayerInput() == nullptr)
|
||||||
|
{
|
||||||
|
ImGui::Text("No Player Input");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (ImGui::BeginMenuBar())
|
if (ImGui::BeginMenuBar())
|
||||||
{
|
{
|
||||||
if (ImGui::BeginMenu("Options"))
|
if (ImGui::BeginMenu("Options"))
|
||||||
|
|||||||
Reference in New Issue
Block a user