Skip to content

Commit

Permalink
Bug Fix: Manjaro Compilation on 0.8.x
Browse files Browse the repository at this point in the history
Compiler error on trying to concat a string and int.
  • Loading branch information
BenjamenMeyer committed Oct 29, 2023
1 parent beff0dd commit 1bf993a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/src/cmd/script/script_statement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 1bf993a

Please sign in to comment.