X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=nageru%2Fscene.cpp;h=0d10be5b8cba5876363367b7007c43cb2f0ac2ba;hp=d7da7db997ba1fbc3d4b74a7549ed36feaca1335;hb=67cb1b844a13c84a2df64a603644579310530409;hpb=337e2d06624b4b46eb2e7e5365e2ece219f9f100 diff --git a/nageru/scene.cpp b/nageru/scene.cpp index d7da7db..0d10be5 100644 --- a/nageru/scene.cpp +++ b/nageru/scene.cpp @@ -327,6 +327,8 @@ Scene::get_chain(Theme *theme, lua_State *L, unsigned num, const InputState &inp #endif } else if (block->signal_type_to_connect == Block::CONNECT_VIDEO) { signals_to_connect.emplace(input, block->video_to_connect->get_card_index()); + } else if (block->signal_type_to_connect == Block::CONNECT_NONE) { + luaL_error(L, "An input in a chain was not connected to anything (forgot to call display())"); } else { assert(false); }