diff --git a/SourceX/DiabloUI/art.cpp b/SourceX/DiabloUI/art.cpp index 8f77eea73..68839a61c 100644 --- a/SourceX/DiabloUI/art.cpp +++ b/SourceX/DiabloUI/art.cpp @@ -57,7 +57,8 @@ void LoadMaskedArt(const char *pszFile, Art *art, int frames, int mask) void LoadArt(Art *art, const BYTE *artData, int w, int h, int frames) { art->frames = frames; - art->surface = SDL_CreateRGBSurfaceWithFormatFrom((char *)artData, w, h, 8, w, SDL_PIXELFORMAT_INDEX8); + art->surface = SDL_CreateRGBSurfaceWithFormatFrom( + const_cast(artData), w, h, 8, w, SDL_PIXELFORMAT_INDEX8); art->frame_height = h / frames; }