Fix error with sol::state set function returning an instance of the global table

This commit is contained in:
HFCPC 2013-11-25 16:45:00 -05:00
parent f2d72f7bb2
commit bf90dbcc81

View File

@ -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 {