Skip to content

Commit

Permalink
Update src/math_parser.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: andrei <[email protected]>
  • Loading branch information
bombasticSlacks and andrei8l authored Apr 27, 2023
1 parent 33861b2 commit 9be5424
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/math_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,7 @@ void math_exp::math_exp_impl::new_var( std::string_view str )
default:
debugmsg( "Unknown scope %c in variable %.*s", str[0], str.size(), str.data() );
}
}
if( str.size() > 1 && str[0] == '_' ) {
} else if( str.size() > 1 && str[0] == '_' ) {
type = var_type::context;
scoped = scoped.substr( 1 );
}
Expand Down

0 comments on commit 9be5424

Please sign in to comment.