Updated NPC and entity script functions, fixed RunScriptQuotable breaking with empty strings

This commit is contained in:
Blixibon
2020-05-24 00:57:23 -05:00
parent 4320ae71e7
commit c06bf1e1c4
4 changed files with 70 additions and 37 deletions

View File

@@ -401,7 +401,7 @@ CAI_Schedule *CAI_BaseNPC::GetScheduleOfType( int scheduleType )
}
g_pScriptVM->SetValue( "schedule", GetSchedulingSymbols()->ScheduleIdToSymbol( newSchedule ) );
g_pScriptVM->SetValue( "schedule_id", newSchedule );
g_pScriptVM->SetValue( "schedule_id", scheduleType ); // Use the local ID
ScriptVariant_t functionReturn;
m_ScriptScope.Call( hFunc, &functionReturn );