Some more error checking for class names and tangible IDs
This commit is contained in:
@@ -141,7 +141,7 @@ Tangible *World::tangible_get(const LuaCoreStack &LS, LuaSlot tab, bool allowdel
|
||||
}
|
||||
|
||||
Tangible *World::tangible_make(const LuaCoreStack &LS0, LuaSlot database, int64_t id) {
|
||||
assert(id != 0);
|
||||
assert(LS0.validpositiveint64(id));
|
||||
LuaVar metatab;
|
||||
LuaExtStack LS(LS0.state(), metatab);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user