Browse Source

Changed type for arrays from vector to deque

crazy_things
Ludovic 'Archivist' Lagouardette 1 year ago
parent
commit
1a9878ece9
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      include/UserScript.h

+ 3
- 2
include/UserScript.h View File

@ -2,6 +2,7 @@
#include <memory> #include <memory>
#include <string> #include <string>
#include <variant> #include <variant>
#include <deque>
#include <vector> #include <vector>
#include <optional> #include <optional>
@ -26,8 +27,8 @@ namespace scripting {
}; };
struct array { struct array {
std::vector<script_value> value;
operator std::vector<script_value>&() {
std::deque<script_value> value;
operator std::deque<script_value>&() {
return value; return value;
} }
}; };

Loading…
Cancel
Save