[ruamoko] Fix missing entity registry pointer

This commit is contained in:
Bill Currie 2022-10-26 17:45:45 +09:00
parent db7f8a461e
commit 600a342200

View file

@ -120,6 +120,7 @@ rua__entity_get (rua_scene_resources_t *res, pr_ulong_t id, const char *name)
if (scene) {
pr_int_t entity_id = id >> 32;
ent.id = entity_id;
ent.reg = scene->scene->reg;
}
if (!Entity_Valid (ent)) {