From 5203925ce416d40d7d9bce496a99539dc2c36fbe Mon Sep 17 00:00:00 2001 From: b3brodie <70666939+b3brodie@users.noreply.github.com> Date: Sat, 14 Dec 2024 03:30:05 -0800 Subject: [PATCH] Update src/math_parser_diag.cpp Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/math_parser_diag.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/math_parser_diag.cpp b/src/math_parser_diag.cpp index 7d22c17ee0c66..483df45751b0b 100644 --- a/src/math_parser_diag.cpp +++ b/src/math_parser_diag.cpp @@ -1116,7 +1116,8 @@ diag_eval_dbl_f spell_exp_for_level_eval( char /* scope */, return[sid = params[0], level = params[1]]( const_dialogue const & d ) -> double { std::string sid_str = sid.str( d ); spell_id spell( sid_str ); - if( spell.is_valid() ) { + if( spell.is_valid() ) + { return spell->exp_for_level( level.dbl( d ) ); }