fixed crash when encountering unknown component

This commit is contained in:
Mikulas Florek 2018-02-23 16:19:56 +01:00
parent ebe5a12c37
commit 8c41fe6f8c

View file

@ -782,7 +782,7 @@ namespace Lumix
visitor.cmp_type = cmp_type;
visitor.L = L;
cmp_desc->visit(visitor);
if(cmp_desc) cmp_desc->visit(visitor);
lua_pop(L, 1);
}