Skip to content

Commit a8d750e

Browse files
authored
Merge pull request #371 from und3f/fix-oldstyle-const-cast-warning
Fix use of old-style cast
2 parents 95cc747 + e483d58 commit a8d750e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/TextureUnmanaged.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ class TextureUnmanaged : public ::Texture {
294294
}
295295

296296
TextureUnmanaged& SetMaterial(const ::Material& material, int mapType = MATERIAL_MAP_NORMAL) {
297-
::SetMaterialTexture((::Material*)(&material), mapType, *this);
297+
::SetMaterialTexture(const_cast<::Material*>(&material), mapType, *this);
298298
return *this;
299299
}
300300

0 commit comments

Comments
 (0)