Skip to content

Commit 500047b

Browse files
committed
Fixed ToParsedArray on strings
1 parent c0e3dcb commit 500047b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/res.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ game_value Result::cmd_toParsedArray(game_state& state, game_value_parameter rig
7979
while (res->next()) {
8080
auto_array<game_value> row;
8181

82-
auto addParsedString = [&row, &state](const r_string& content) {
82+
auto addParsedString = [&row, &state](r_string&& content) {
8383

8484
if (content.front() == '[') {//array
8585
//attempt parse
@@ -99,6 +99,7 @@ game_value Result::cmd_toParsedArray(game_state& state, game_value_parameter rig
9999
|| content.front() == 'f'//false
100100
|| content.front() == 'F'//False
101101
|| (content.front() >= '0' && content.front() <= '9')//number
102+
|| (content.front() == '\'' || content.front() == '"')//string
102103
) {
103104

104105
auto arrayContent = sqf::parse_simple_array(r_string("["sv)+content+"]"sv);

0 commit comments

Comments
 (0)