mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-07 16:18:50 +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;
|
||||
}
|
||||
|
||||
if(EnhancedInputSubsystem->GetPlayerInput() == nullptr)
|
||||
{
|
||||
ImGui::Text("No Player Input");
|
||||
return;
|
||||
}
|
||||
|
||||
if (ImGui::BeginMenuBar())
|
||||
{
|
||||
if (ImGui::BeginMenu("Options"))
|
||||
|
||||
Reference in New Issue
Block a user