Skip to content

Commit e483d58

Browse files
committed
Fix use of old-style cast
1 parent 95cc747 commit e483d58

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)