Commit a4928fde authored by Christoph Cullmann's avatar Christoph Cullmann

detach only for not freshly created data

parent 6bbbcff8
......@@ -36,8 +36,9 @@ StateData *StateData::get(State &state)
// create state data on demand, to make default state construction cheap
if (!state.d) {
state.d = new StateData();
} else {
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