Skip to content

Commit

Permalink
fix #5934
Browse files Browse the repository at this point in the history
Conflicts:
	rts/Rendering/CommandDrawer.cpp
  • Loading branch information
rt committed Mar 18, 2018
1 parent 5adac5b commit a70842f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions rts/Rendering/CommandDrawer.cpp
Expand Up @@ -633,7 +633,11 @@ void CommandDrawer::DrawQuedBuildingSquares(const CBuilderCAI* cai) const
if (buildOptions.find(c.GetID()) == buildOptions.end())
continue;

BuildInfo bi(c);
BuildInfo bi;

if (!bi.Parse(c))
continue;

bi.pos = CGameHelper::Pos2BuildPos(bi, false);

buildCommands += 1;
Expand All @@ -656,7 +660,11 @@ void CommandDrawer::DrawQuedBuildingSquares(const CBuilderCAI* cai) const
if (buildOptions.find(c.GetID()) == buildOptions.end())
continue;

BuildInfo bi(c);
BuildInfo bi;

if (!bi.Parse(c))
continue;

bi.pos = CGameHelper::Pos2BuildPos(bi, false);

const float xsize = bi.GetXSize() * (SQUARE_SIZE >> 1);
Expand Down

0 comments on commit a70842f

Please sign in to comment.