Skip to content

Commit

Permalink
Fix build after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Oct 11, 2024
1 parent 6801150 commit f314e63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jngl/sprite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ void Sprite::cleanUpRowPointers(std::vector<unsigned char*>& 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)) {
Expand Down

0 comments on commit f314e63

Please sign in to comment.