Update libentity.cpp

This commit is contained in:
Astazium 2026-06-04 17:34:29 +03:00 • committed by GitHub
parent 3c10611fda
commit 74c9070fdc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,7 +63,7 @@ static int l_spawn(lua::State* L) {
auto level = controller->getLevel();
auto defname = lua::tostring(L, 1);
if (defname == nullptr) {
throw std::runtime_error("string is nil");
throw std::runtime_error("invalid string");
}
auto& def = content->entities.require(defname);
auto pos = lua::tovec3(L, 2);