Don't crash when close STK window directly

This commit is contained in:
Benau 2018-02-18 14:13:24 +08:00
parent c5b986e874
commit e52ab5888c

View File

@ -66,7 +66,10 @@ public:
{ {
// The script engine must release each string // The script engine must release each string
// constant that it has requested // constant that it has requested
assert(stringCache.size() == 0); if (!stringCache.empty())
{
printf("Scripting engine was not cleared properly.\n");
}
} }
const void *GetStringConstant(const char *data, asUINT length) const void *GetStringConstant(const char *data, asUINT length)