fix bugs in Clang

This commit is contained in:
2020-09-11 17:11:32 +08:00
parent 7de258d7a3
commit 3f6742f116
9 changed files with 15 additions and 15 deletions

View File

@@ -131,7 +131,7 @@ namespace hgl
*/
TileObject *TileData::Commit(const void *data,const uint bytes,const int ctw,const int cth)
{
if(!commit_ptr)return(false);
if(!commit_ptr)return(nullptr);
if(!data||!bytes||ctw<=0||cth<=0)
return(nullptr);