Don't crash when close STK window directly
This commit is contained in:
parent
c5b986e874
commit
e52ab5888c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user