mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 20:13:07 +01:00
Return undefined instead of null
This commit is contained in:
@@ -88,7 +88,7 @@ namespace OpenRCT2::Scripting
|
||||
auto& scriptEngine = GetContext()->GetScriptEngine();
|
||||
auto plugin = scriptEngine.GetExecInfo().GetCurrentPlugin();
|
||||
auto range = AllocateCustomImages(plugin, count);
|
||||
return range ? CreateImageIndexRange(range->BaseId, range->Count) : ToDuk(_ctx, nullptr);
|
||||
return range ? CreateImageIndexRange(range->BaseId, range->Count) : ToDuk(_ctx, undefined);
|
||||
}
|
||||
|
||||
void free(const DukValue& dukRange)
|
||||
|
||||
Reference in New Issue
Block a user