Skip to content

Commit 7b382d1

Browse files
fix a very badly named variable
1 parent d9d27d9 commit 7b382d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/nbl/asset/IAsset.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ class IAsset : virtual public core::IReferenceCounted
131131
{
132132
if (!rootAsset)
133133
return nullptr;
134-
assetType* image = rootAsset->getAssetType()!=assetType::AssetType ? nullptr:static_cast<assetType*>(rootAsset);
134+
assetType* typedAsset = rootAsset->getAssetType()!=assetType::AssetType ? nullptr:static_cast<assetType*>(rootAsset);
135135
#ifdef _NBL_DEBUG
136-
assert(image);
136+
assert(typedAsset);
137137
#endif
138-
return image;
138+
return typedAsset;
139139
}
140140
//! Smart pointer variant
141141
template<typename assetType>

0 commit comments

Comments
 (0)