Fix create_with_id segfault

This commit is contained in:
griffi-gh 2023-04-18 16:16:39 +02:00 committed by ROllerozxa
commit 1f79c9bcb4

View file

@ -979,9 +979,11 @@ entity*
of::create_with_id(p_gid g_id, p_id id)
{
entity *e = _create(g_id);
e->id = id;
if (e) {
e->id = id;
}
return e;
}