diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-06-24 18:30:58 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-06-25 13:49:20 -0700 |
commit | c9c81a610d97c95c15f938ecd07ceb71cb0cdfb1 (patch) | |
tree | 7637cf53216c6d0b8deadbfb8ea56faf4ff5bc85 /src/map/magic-interpreter-parser.ypp | |
parent | dbbfda0e96037da4f208ff8f00d181a5294484ae (diff) | |
download | tmwa-c9c81a610d97c95c15f938ecd07ceb71cb0cdfb1.tar.gz tmwa-c9c81a610d97c95c15f938ecd07ceb71cb0cdfb1.tar.bz2 tmwa-c9c81a610d97c95c15f938ecd07ceb71cb0cdfb1.tar.xz tmwa-c9c81a610d97c95c15f938ecd07ceb71cb0cdfb1.zip |
Fix bugs
Diffstat (limited to 'src/map/magic-interpreter-parser.ypp')
-rw-r--r-- | src/map/magic-interpreter-parser.ypp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/magic-interpreter-parser.ypp b/src/map/magic-interpreter-parser.ypp index c5a7dd8..a392bc7 100644 --- a/src/map/magic-interpreter-parser.ypp +++ b/src/map/magic-interpreter-parser.ypp @@ -1195,7 +1195,7 @@ dumb_ptr<expr_t> fun_expr(const std::string& name, const_array<dumb_ptr<expr_t>> expr->e.e_funapp.column = column; expr->e.e_funapp.id = id; - assert (argv.size() < MAX_ARGS); + assert (argv.size() <= MAX_ARGS); expr->e.e_funapp.args_nr = argv.size(); std::copy(argv.begin(), argv.end(), expr->e.e_funapp.args); @@ -1309,7 +1309,7 @@ dumb_ptr<effect_t> op_effect(const std::string& name, const_array<dumb_ptr<expr_ effect->e.e_op.line_nr = line; effect->e.e_op.column = column; effect->e.e_op.id = id; - assert (argv.size() < MAX_ARGS); + assert (argv.size() <= MAX_ARGS); effect->e.e_op.args_nr = argv.size(); std::copy(argv.begin(), argv.end(), effect->e.e_op.args); |