Merge branch 'fix-assert' of https://github.com/maxdeviant/wren into maxdeviant-fix-assert

This commit is contained in:
Bob Nystrom
2018-03-26 07:50:16 -07:00
2 changed files with 2 additions and 1 deletions

View File

@ -20,3 +20,4 @@ Damien Radtke <damienradtke@gmail.com>
Max Ferguson <maxxferguson@gmail.com>
Sven Bergström <sven@underscorediscovery.com>
Kyle Charters <kylewcharters@gmail.com>
Marshall Bowers <elliott.codes@gmail.com>

View File

@ -1728,7 +1728,7 @@ void wrenGetVariable(WrenVM* vm, const char* module, const char* name,
int slot)
{
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);
Value moduleName = wrenStringFormat(vm, "$", module);