From 795a45c950524560e01988ab064997913f0cca67 Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Sun, 28 Mar 2021 15:22:45 -0400 Subject: [PATCH] Minor bugfix to tangible.animate --- luprex/core/cpp/world.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/luprex/core/cpp/world.cpp b/luprex/core/cpp/world.cpp index e8f95541..d3cc182a 100644 --- a/luprex/core/cpp/world.cpp +++ b/luprex/core/cpp/world.cpp @@ -471,6 +471,9 @@ LuaDefine(tangible_animate, "c") { int64_t id = w->id_global_pool_.alloc_id_for_thread(L); AnimStep step; step.from_lua(L, config.index()); + if (step.action() == "") { + luaL_error(L, "animation action must be specified"); + } tan->anim_queue_.add(id, step); tan->update_plane_item(); return LS.result();