Skip to content

Commit

Permalink
Copy constructor for HudElement because GCC 4.6 can't handle construc…
Browse files Browse the repository at this point in the history
…tors calling constructors
  • Loading branch information
DolceTriade committed Jul 4, 2015
1 parent 56b0767 commit 5ec6db4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gamelogic/cgame/cg_rocket_draw.cpp
Expand Up @@ -71,8 +71,10 @@ class HudElement : public Rocket::Core::Element
type(type_),
isReplacedElement(replacedElement) {}

HudElement( const Rocket::Core::String& tag, rocketElementType_t type_ ) :
HudElement(tag, type_, false) {}
HudElement(const Rocket::Core::String& tag, rocketElementType_t type_) :
Rocket::Core::Element(tag),
type(type_),
isReplacedElement(false) {}

void OnUpdate()
{
Expand Down

0 comments on commit 5ec6db4

Please sign in to comment.