mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Fix error with sol::state set function returning an instance of the global table
This commit is contained in:
parent
f2d72f7bb2
commit
bf90dbcc81
|
@ -141,7 +141,8 @@ public:
|
||||||
|
|
||||||
template<typename T, typename U>
|
template<typename T, typename U>
|
||||||
state& set(T&& key, U&& value) {
|
state& set(T&& key, U&& value) {
|
||||||
return global.set(std::forward<T>(key), std::forward<U>(value));
|
global.set(std::forward<T>(key), std::forward<U>(value));
|
||||||
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
table global_table() const {
|
table global_table() const {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user