From f314e6393f3236304966c60eb2acc13599db1c12 Mon Sep 17 00:00:00 2001 From: Jan Niklas Hasse Date: Fri, 11 Oct 2024 23:37:47 +0200 Subject: [PATCH] Fix build after merge --- src/jngl/sprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jngl/sprite.cpp b/src/jngl/sprite.cpp index 01351000..19d85614 100644 --- a/src/jngl/sprite.cpp +++ b/src/jngl/sprite.cpp @@ -392,7 +392,7 @@ void Sprite::cleanUpRowPointers(std::vector& buf) { Finally Sprite::LoadBMP(std::string_view filename, FILE* const fp, const bool halfLoad) { if (fseek(fp, 10, SEEK_SET) != 0) { - throw std::runtime_error(std::string("Error seeking file. (" + filename + ")")); + throw std::runtime_error(std::format("Error seeking file. ({})", filename)); } BMPHeader header{}; if (!fread(&header, sizeof(header), 1, fp)) {