浏览代码

Fixed compile errors on linux (obvious programming faults).

Daniel Brall 9 年之前
父节点
当前提交
afcb731d18
共有 2 个文件被更改,包括 2 次插入5 次删除
  1. 1 1
      Engine/lib/collada/src/dae/daeMetaGroup.cpp
  2. 1 4
      Engine/lib/convexDecomp/NvHashMap.h

+ 1 - 1
Engine/lib/collada/src/dae/daeMetaGroup.cpp

@@ -31,7 +31,7 @@ daeElement *daeMetaGroup::placeElement( daeElement *parent, daeElement *child, d
 	(void)offset;
 	daeString nm = child->getElementName();
 	if ( findChild( nm ) == NULL ) {
-		return false;
+		return NULL;
 	}
 	daeElementRef el;
 

+ 1 - 4
Engine/lib/convexDecomp/NvHashMap.h

@@ -692,9 +692,6 @@ namespace CONVEX_DECOMPOSITION
 				mCapacity = t.mCapacity;
 
 				copy(mData,t.mData,t.mSize);
-				mSize = t.mSize;
-
-				return;
 			}
 			else
 			{
@@ -1521,7 +1518,7 @@ namespace CONVEX_DECOMPOSITION
 			NX_INLINE const Entry *find(const Key &k) const
 			{
 				if(!mHash.size())
-					return false;
+					return NULL;
 
 				NxU32 h = hash(k);
 				NxU32 index = mHash[h];