[colobot] 121/145: Fixed string values with spaces (closes #791)

Didier Raboud odyx at moszumanska.debian.org
Mon Jul 11 12:56:24 UTC 2016


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository colobot.

commit 5f7a8dbd5d3a9f7eeeb39a8e69ffbbae364c151a
Author: krzys-h <krzys_h at interia.pl>
Date:   Tue Jun 21 12:57:45 2016 +0200

    Fixed string values with spaces (closes #791)
---
 src/CBot/CBotVar/CBotVarString.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/CBot/CBotVar/CBotVarString.h b/src/CBot/CBotVar/CBotVarString.h
index 5ff29d1..162264d 100644
--- a/src/CBot/CBotVar/CBotVarString.h
+++ b/src/CBot/CBotVar/CBotVarString.h
@@ -32,6 +32,12 @@ class CBotVarString : public CBotVarValue<std::string, CBotTypString>
 public:
     CBotVarString(const CBotToken &name) : CBotVarValue(name) {}
 
+    void SetValString(const std::string& val) override
+    {
+        m_val = val;
+        m_binit = CBotVar::InitType::DEF;
+    }
+
     void SetValInt(int val, const std::string& s = "") override
     {
         SetValString(ToString(val));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list