Fixed string values with spaces (closes #791)

master
krzys-h 2016-06-21 12:57:45 +02:00
parent 8ad53ce327
commit 5f7a8dbd5d
1 changed files with 6 additions and 0 deletions

View File

@ -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));