summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/textual.cc b/src/textual.cc
index 418b6c00..8f37a566 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -1532,13 +1532,12 @@ post_t * instance_t::parse_post(char * line,
post->add_flags(POST_COST_IN_FULL);
DEBUG("textual.parse", "line " << context.linenum << ": "
<< "And it's for a total price");
+ next++;
}
- if (post->has_flags(POST_COST_VIRTUAL) && *(next + 1) == ')')
+ if (post->has_flags(POST_COST_VIRTUAL) && *next == ')')
++next;
- beg = static_cast<std::streamsize>(++next - line);
-
p = skip_ws(next);
if (*p) {
post->cost = amount_t();