Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions Core/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2741,13 +2741,15 @@ void ControlBar::showRallyPoint(const Coord3D* loc)
if (m_rallyPointDrawableID == INVALID_DRAWABLE_ID)
{
const ThingTemplate* ttn = TheThingFactory->findTemplate("RallyPointMarker");
marker = TheThingFactory->newDrawable(ttn);
DEBUG_ASSERTCRASH(marker, ("showRallyPoint: Unable to create rally point drawable"));
if (marker)
if (!ttn)
{
marker->setDrawableStatus(DRAWABLE_STATUS_NO_SAVE);
m_rallyPointDrawableID = marker->getID();
return;
}

marker = TheThingFactory->newDrawable(ttn);
DEBUG_ASSERTCRASH(marker, ("showRallyPoint: Unable to create rally point drawable"));
marker->setDrawableStatus(DRAWABLE_STATUS_NO_SAVE);
m_rallyPointDrawableID = marker->getID();
Comment thread
CryoTheRenegade marked this conversation as resolved.
}
else
marker = TheGameClient->findDrawableByID(m_rallyPointDrawableID);
Expand Down
Loading