ObjectID converted to a structure, fixes many bugs where used incorrectly as 32 bits.
This commit is contained in:
@ -1399,7 +1399,7 @@ int Tree::draw_item(const Point2i &p_pos, const Point2 &p_draw_ofs, const Size2
|
||||
} break;
|
||||
case TreeItem::CELL_MODE_CUSTOM: {
|
||||
|
||||
if (p_item->cells[i].custom_draw_obj) {
|
||||
if (p_item->cells[i].custom_draw_obj.is_valid()) {
|
||||
|
||||
Object *cdo = ObjectDB::get_instance(p_item->cells[i].custom_draw_obj);
|
||||
if (cdo)
|
||||
|
||||
Reference in New Issue
Block a user