Archived
1
0

oh that's why

This commit is contained in:
Marrub 2015-08-06 09:20:53 -04:00
parent 0eafe62d22
commit 537179902a

View File

@ -424,7 +424,16 @@ LT_BOOL LT_Assert(LT_BOOL assertion, const char *fmt, ...)
if(assertion) if(assertion)
{ {
char *asBuffer = LT_Alloc(512); char *asBuffer = LT_Alloc(512);
int place = (int)ftell(parseFile); int place;
if(parseFile != NULL)
{
place = (int)ftell(parseFile);
}
else
{
place = -1;
}
va_list va; va_list va;
assertError = LT_TRUE; assertError = LT_TRUE;