Improve implementation of LS.getclass and LS.classname, make it more consistent.
This commit is contained in:
@@ -89,7 +89,7 @@ class Deserializer {
|
||||
}
|
||||
case LUA_TT_CLASS: {
|
||||
eng::string name = sb_->read_string();
|
||||
if (!LS_.validclassname(name)) {
|
||||
if (!sv::is_lua_classname(name)) {
|
||||
throw DeserializeError();
|
||||
}
|
||||
LS_.makeclass(target, name);
|
||||
|
||||
Reference in New Issue
Block a user