From 426752022ee4b5158b4cfc6c4531fff285029071 Mon Sep 17 00:00:00 2001 From: ChrisTX Date: Sat, 31 Aug 2013 01:17:07 +0200 Subject: Improve support for rarely used compilers, EKOPath in this case. --- src/command_parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/command_parse.cpp') diff --git a/src/command_parse.cpp b/src/command_parse.cpp index b05b34c9b..34844d804 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -256,7 +256,7 @@ bool CommandParser::ProcessCommand(LocalUser *user, std::string &cmd) while (command_p.size() > (cm->second->max_params - 1)) { // BE CAREFUL: .end() returns past the end of the vector, hence decrement. - std::vector::iterator it = --command_p.end(); + std::vector::iterator it = command_p.end() - 1; lparam.insert(0, " " + *(it)); command_p.erase(it); // remove last element -- cgit v1.2.3