From cb0725bad11ca953a619face96c6708708cec685 Mon Sep 17 00:00:00 2001 From: fed <58637860+fedddddd@users.noreply.github.com> Date: Sun, 11 Jul 2021 04:26:57 +0200 Subject: [PATCH] Fix --- src/component/gsc.hpp | 4 ++-- src/game/scripting/array.hpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/component/gsc.hpp b/src/component/gsc.hpp index 6834b56..4447b9f 100644 --- a/src/component/gsc.hpp +++ b/src/component/gsc.hpp @@ -9,8 +9,8 @@ namespace gsc public: function_args(std::vector); - unsigned int function_args::size() const; - std::vector function_args::get_raw() const; + unsigned int size() const; + std::vector get_raw() const; scripting::script_value get(const int index) const; scripting::script_value operator[](const int index) const diff --git a/src/game/scripting/array.hpp b/src/game/scripting/array.hpp index 18e4e05..ab6f905 100644 --- a/src/game/scripting/array.hpp +++ b/src/game/scripting/array.hpp @@ -15,7 +15,7 @@ namespace scripting { public: array_value(unsigned int parent_id, unsigned int id); - void array_value::operator=(const script_value& value); + void operator=(const script_value& value); private: unsigned int id_; unsigned int parent_id_; @@ -50,12 +50,12 @@ namespace scripting entity get_raw() const; - array_value array::operator[](const int index) const + array_value operator[](const int index) const { return {this->id_, this->get_value_id(index)}; } - array_value array::operator[](const std::string& key) const + array_value operator[](const std::string& key) const { return {this->id_, this->get_value_id(key)}; }