Skip to content

Commit

Permalink
fix GUI crash
Browse files Browse the repository at this point in the history
  • Loading branch information
rtri committed Jul 14, 2020
1 parent dbc096c commit 4b0ec54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rts/Game/UI/GuiHandler.cpp
Expand Up @@ -4009,7 +4009,7 @@ void CGuiHandler::DrawMapStuff(bool onMiniMap)

const bool activeAttackCmd = (haveActiveCommand && commands[inCommand].id == CMD_ATTACK);
const bool defaultAttackCmd = (inCommand == -1 && defaultCmd > 0 && commands[defaultCmd].id == CMD_ATTACK);
const bool drawPointeeRing = (pointeeUnit != nullptr && pointeeUnit->maxRange > 0.0f);
const bool drawPointeeRing = (pointeeUnit != nullptr && !pointeeUnit->weapons.empty());
const bool drawBuildeeRings = (activeBuildCommand && rayTraceDist > 0.0f);
const bool drawWeaponCones = (!onMiniMap && gs->cheatEnabled && globalRendering->drawDebug);

Expand Down

0 comments on commit 4b0ec54

Please sign in to comment.