Update libentity.cpp

This commit is contained in:
Astazium 2026-06-03 18:02:36 +03:00 • committed by GitHub
parent 77d9ca1d86
commit 0a3f51666e
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("empty string");
throw std::runtime_error("invalid string");
}
auto& def = content->entities.require(defname);
auto pos = lua::tovec3(L, 2);