Commit fc424142 authored by Sylvain Thery's avatar Sylvain Thery

bug oubli if dans attrib registry

parent 4ced4fb2
......@@ -35,7 +35,8 @@ std::map< std::string, RegisteredBaseAttribute* >* GenericMap::m_attributes_regi
GenericMap::GenericMap()
{
m_attributes_registry_map = new std::map< std::string, RegisteredBaseAttribute* >;
if (m_attributes_registry_map ==NULL)
m_attributes_registry_map = new std::map< std::string, RegisteredBaseAttribute* >;
// register all known types
registerAttribute<Dart>("Dart");
registerAttribute<Mark>("Mark");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment