diff --git a/dependencies/subprojects/animationwindow/src/Image.cpp b/dependencies/subprojects/animationwindow/src/Image.cpp index 7f89472..43c6a5b 100644 --- a/dependencies/subprojects/animationwindow/src/Image.cpp +++ b/dependencies/subprojects/animationwindow/src/Image.cpp @@ -47,7 +47,7 @@ TDT4102::Image::Image(const std::filesystem::path pathToImageFile) { throw std::runtime_error("The image file located at " + path.string() + "\ncould not be found"); } - surface = IMG_Load(pathToImageFile.c_str()); + surface = IMG_Load(pathToImageFile.string().c_str()); surface = SDL_ConvertSurfaceFormat(surface, GetPixelFormat(), 0); width = surface->w; height = surface->h;