diff options
| author | Tilka <tilkax@gmail.com> | 2019-02-13 01:59:43 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-13 01:59:43 +0000 |
| commit | 8d59d1bb11bf594afc6fa3f0a860773c6fa6b8b5 (patch) | |
| tree | 39b666b2bd36c44c1787821c4a5d982e3a14b619 /Source/Core/UICommon/GameFileCache.cpp | |
| parent | 6b22693e6ee783989f92c8a09a4912f4123235d5 (diff) | |
| parent | 49fe9f5db13f15460a49c5771ee0d2c6b8bfdc3c (diff) | |
Merge pull request #7798 from ShFil119/impr/empty
Use empty instead of size
Diffstat (limited to 'Source/Core/UICommon/GameFileCache.cpp')
| -rw-r--r-- | Source/Core/UICommon/GameFileCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/UICommon/GameFileCache.cpp b/Source/Core/UICommon/GameFileCache.cpp index 7fa558d889..aad527e612 100644 --- a/Source/Core/UICommon/GameFileCache.cpp +++ b/Source/Core/UICommon/GameFileCache.cpp @@ -232,7 +232,7 @@ bool GameFileCache::SyncCacheFile(bool save) else { std::vector<u8> buffer(f.GetSize()); - if (buffer.size() && f.ReadBytes(buffer.data(), buffer.size())) + if (!buffer.empty() && f.ReadBytes(buffer.data(), buffer.size())) { u8* ptr = buffer.data(); PointerWrap p(&ptr, PointerWrap::MODE_READ); |
