Skip to content

Commit

Permalink
fix: fix return path compile error
Browse files Browse the repository at this point in the history
LookupLoadedModByName and LookupLoadedLightModByIndex will now correctly return nullptr if no file can be found
  • Loading branch information
Nightfallstorm authored and alandtse committed Dec 14, 2023
1 parent 6599897 commit e6eadfc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/RE/T/TESDataHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ namespace RE
}
return nullptr;
}
return nullptr;
}

const TESFile* TESDataHandler::LookupLoadedModByIndex(std::uint8_t a_index)
Expand Down Expand Up @@ -194,6 +195,7 @@ namespace RE
}
}
}
return nullptr;
#endif
}

Expand Down

0 comments on commit e6eadfc

Please sign in to comment.