Whoops, fix an assert that was improperly changed to an internal error

This commit is contained in:
kyren 2018-03-08 11:14:02 -05:00
parent adfeaeab49
commit 10802bf70f
1 changed files with 1 additions and 1 deletions

View File

@ -727,7 +727,7 @@ impl Lua {
// Used 1 stack space, does not call checkstack
pub(crate) unsafe fn push_ref(&self, state: *mut ffi::lua_State, lref: &LuaRef) {
rlua_assert!(
assert!(
lref.lua.main_state == self.main_state,
"Lua instance passed Value created from a different Lua"
);