This commit is contained in:
Astazium 2026-08-05 23:07:26 +03:00
commit 3caaa9252e

View file

@ -72,7 +72,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("invalid string");
throw std::runtime_error("string expected, got nil");
}
auto& def = content->entities.require(defname);
auto pos = lua::tovec3(L, 2);