diff --git a/inc/hgl/type/ResManage.cpp b/inc/hgl/type/ResManage.cpp index 02f3659..c95833c 100644 --- a/inc/hgl/type/ResManage.cpp +++ b/inc/hgl/type/ResManage.cpp @@ -62,12 +62,9 @@ namespace hgl if(index==-1) return(nullptr); - T *result; + ResItem *obj=items.GetItem(index); - if(items.Get(flag,result)) - return(result); - - return(nullptr); + return obj->right; } template