mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fixed compilation issues with g++
This commit is contained in:
parent
d4e366ee14
commit
6eb1ec3cf5
6 changed files with 74 additions and 67 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue