We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0e3dcb commit 500047bCopy full SHA for 500047b
1 file changed
src/res.cpp
@@ -79,7 +79,7 @@ game_value Result::cmd_toParsedArray(game_state& state, game_value_parameter rig
79
while (res->next()) {
80
auto_array<game_value> row;
81
82
- auto addParsedString = [&row, &state](const r_string& content) {
+ auto addParsedString = [&row, &state](r_string&& content) {
83
84
if (content.front() == '[') {//array
85
//attempt parse
@@ -99,6 +99,7 @@ game_value Result::cmd_toParsedArray(game_state& state, game_value_parameter rig
99
|| content.front() == 'f'//false
100
|| content.front() == 'F'//False
101
|| (content.front() >= '0' && content.front() <= '9')//number
102
+ || (content.front() == '\'' || content.front() == '"')//string
103
) {
104
105
auto arrayContent = sqf::parse_simple_array(r_string("["sv)+content+"]"sv);
0 commit comments