Assert that there is at least one slot allocated

This commit is contained in:
King_DuckZ 2022-04-22 00:56:12 +02:00
parent dfb3514ffc
commit 839dbccfb1

View file

@ -292,6 +292,7 @@ namespace wren {
}
void VM::variable(const char* module, const char* name, int slot) {
assert(slot_count() >= 1);
wrenGetVariable(m_local->wvm, module, name, slot);
}