Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
deathkiller committed Jun 9, 2024
1 parent 355a258 commit 7500140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Shared/IO/FileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2378,8 +2378,8 @@ namespace Death { namespace IO {
std::unique_ptr<Stream> FileSystem::Open(const String& path, FileAccess mode)
{
#if defined(DEATH_TARGET_ANDROID)
const char* assetName = AndroidAssetStream::TryGetAssetPath(String::nullTerminatedView(path).data());
if (assetName != nullptr) {
StringView assetName = AndroidAssetStream::TryGetAssetPath(String::nullTerminatedView(path).data());
if (!assetName.empty()) {
return std::make_unique<AndroidAssetStream>(assetName, mode);
}
#endif
Expand Down

0 comments on commit 7500140

Please sign in to comment.