Fix variable in assert

Fixes #493
This commit is contained in:
Marshall Bowers
2018-01-18 00:46:58 -05:00
committed by GitHub
parent c4d08bcb81
commit e493e6679b
+1 -1
View File
@@ -1745,7 +1745,7 @@ void wrenGetVariable(WrenVM* vm, const char* module, const char* name,
int slot) int slot)
{ {
ASSERT(module != NULL, "Module cannot be NULL."); ASSERT(module != NULL, "Module cannot be NULL.");
ASSERT(module != NULL, "Variable name cannot be NULL."); ASSERT(name != NULL, "Variable name cannot be NULL.");
validateApiSlot(vm, slot); validateApiSlot(vm, slot);
Value moduleName = wrenStringFormat(vm, "$", module); Value moduleName = wrenStringFormat(vm, "$", module);