mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 07:14:31 +01:00
Fix bounds checks and a nullptr check
This commit is contained in:
@@ -98,7 +98,7 @@ std::unique_ptr<TitleSequence> LoadTitleSequence(const std::string& path)
|
||||
std::unique_ptr<TitleSequenceParkHandle> TitleSequenceGetParkHandle(const TitleSequence& seq, size_t index)
|
||||
{
|
||||
std::unique_ptr<TitleSequenceParkHandle> handle;
|
||||
if (index <= seq.Saves.size())
|
||||
if (index < seq.Saves.size())
|
||||
{
|
||||
const auto& filename = seq.Saves[index];
|
||||
if (seq.IsZip)
|
||||
|
||||
Reference in New Issue
Block a user