This is an automated email from the git hooks/post-receive script. odyx pushed a commit to branch upstream/latest in repository colobot.
commit 55b4e73a7aec16596c4dbd49a35e80a08a0ef6ba Author: Tomasz Kapuściński <tomaszka...@gmail.com> Date: Fri May 22 20:34:35 2015 +0200 Corrected a problem with strmid() --- src/CBot/CBotString.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CBot/CBotString.cpp b/src/CBot/CBotString.cpp index 8ea561a..7059f20 100644 --- a/src/CBot/CBotString.cpp +++ b/src/CBot/CBotString.cpp @@ -306,6 +306,8 @@ CBotString CBotString::Mid(int start, int lg) { CBotString res; + if (lg == -1) lg = 2000; + // clamp start to correct value if (start < 0) start = 0; if (start >= m_lg) return res; -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git _______________________________________________ Pkg-games-commits mailing list Pkg-games-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits