mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-20 20:23:57 +00:00
Fix failing checks
This commit is contained in:
@@ -163,7 +163,7 @@ const hive_value* hive_key::get_value(std::ifstream& file, size_t index)
|
||||
{
|
||||
this->parse(file);
|
||||
|
||||
if (index < 0 || index >= values_by_index_.size())
|
||||
if (index >= values_by_index_.size())
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ class hive_key
|
||||
{
|
||||
this->parse(file);
|
||||
|
||||
if (index < 0 || index >= sub_keys_by_index_.size())
|
||||
if (index >= sub_keys_by_index_.size())
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user