Fixed compilation issues with g++

This commit is contained in:
L 2023-02-06 19:24:01 +01:00
parent d4e366ee14
commit 6eb1ec3cf5
6 changed files with 74 additions and 67 deletions

View file

@ -377,7 +377,8 @@ ScriptConstArrayHolder::~ScriptConstArrayHolder()
{
if (constArrayValue)
{
delete[](constArrayValue + 1);
ScriptVariable* const offset = constArrayValue + 1;
delete[] offset;
}
}
@ -712,7 +713,7 @@ void ScriptVariable::PrintValue( void )
switch (GetType())
{
case VARIABLE_NONE:
printf( "" );
printf("None");
break;
#ifndef NO_SCRIPTENGINE