mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-07 04:49:00 -06:00
fixed a bug where received sscripts sometimes got an extra character when converted from vector<char> to string
This commit is contained in:
@@ -345,8 +345,9 @@ namespace openspace {
|
||||
}
|
||||
|
||||
//construct a script (string) from the data contained in the buffer
|
||||
std::string script(buffer.data());
|
||||
|
||||
std::string script;
|
||||
script.assign(buffer.begin(), buffer.end());
|
||||
|
||||
//tell the script engine to execute the script when appropriate
|
||||
OsEng.scriptEngine()->queueScript(script);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user