From e7577b9e4aa8263e61af7b30a58ba8b67484bf50 Mon Sep 17 00:00:00 2001 From: Joakim Hunskaar Date: Mon, 20 Jul 2026 23:26:25 +0200 Subject: [PATCH] convert path to string before c_str --- dependencies/subprojects/animationwindow/src/Image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;