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

Loading…
Cancel
Save