Skip to content

Commit

Permalink
Cant use [] syntax here as its not const.
Browse files Browse the repository at this point in the history
  • Loading branch information
acaudwell committed Jun 4, 2010
1 parent 7705cb5 commit a295f74
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dirnode.cpp
Expand Up @@ -993,7 +993,8 @@ void RDirNode::drawEdgeShadows(float dt) const{

//draw edge - assumes calcEdges() called before hand so spline will exist
if(child->isVisible()) {
splines[child].drawShadow();
std::map<RDirNode*, SplineEdge>::const_iterator it = splines.find(child);
if(it != splines.end()) it->second.drawShadow();

child->drawEdgeShadows(dt);
}
Expand All @@ -1007,7 +1008,8 @@ void RDirNode::drawEdges(float dt) const{

//draw edge - assumes calcEdges() called before hand so spline will exist
if(child->isVisible()) {
splines[child].draw();
std::map<RDirNode*, SplineEdge>::const_iterator it = splines.find(child);
if(it != splines.end()) it->second.draw();

child->drawEdges(dt);
}
Expand Down

0 comments on commit a295f74

Please sign in to comment.