Assert that there is at least one slot allocated
This commit is contained in:
parent
dfb3514ffc
commit
839dbccfb1
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue