Skip to content

Commit

Permalink
Fixed map loading crash in windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel1092 authored and bernatx committed May 21, 2020
1 parent 09945c9 commit 4dc4cb8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 186,12 @@ void ATrafficLightManager::BeginPlay()
{
Super::BeginPlay();

// Should not run in empty maps
if (!GetMap())
{
return;
}

if (TrafficLightsGenerated)
{
ResetTrafficLightObjects();
Expand Down

0 comments on commit 4dc4cb8

Please sign in to comment.