From 1bf993ac92a1e75349d25a651245e9207afb71fa Mon Sep 17 00:00:00 2001 From: Benjamen Meyer Date: Sat, 28 Oct 2023 23:09:28 -0400 Subject: [PATCH] Bug Fix: Manjaro Compilation on 0.8.x Compiler error on trying to concat a string and int. --- engine/src/cmd/script/script_statement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/cmd/script/script_statement.cpp b/engine/src/cmd/script/script_statement.cpp index 066dee1a23..afa43d6d80 100644 --- a/engine/src/cmd/script/script_statement.cpp +++ b/engine/src/cmd/script/script_statement.cpp @@ -77,7 +77,7 @@ void Mission::doIf( missionNode *node, int mode ) int nr_subnodes = node->subnodes.size(); if (nr_subnodes != 3) { - fatalError( node, mode, "an if-statement needs exact three subnodes, not "+nr_subnodes ); + fatalError( node, mode, sprintf("an if-statement needs exact three subnodes, not %d", nr_subnodes )); printf( "nr_of_subnodes: %d\n", nr_subnodes ); assert( 0 );