fix crash when loading a saved visual state

This commit is contained in:
Robin Gareus 2016-07-05 23:49:50 +02:00
parent 412fcafda0
commit 2f71967be2
2 changed files with 5 additions and 2 deletions

View file

@ -66,6 +66,9 @@ public:
static XMLNode* get_or_add_node (XMLNode *, const std::string &);
private:
// no copy construction. object_map saves pointers to _state XMLNodes
// use set_state(get_state())
GUIObjectState (const GUIObjectState& other);
XMLNode _state;
// ideally we'd use a O(1) hash table here,