Skip to content

Commit 8c7cd3c

Browse files
authored
Merge pull request igrr#13 from igorepi/igorepi-unpackFiles-fix
Fix unpackFiles bug
2 parents b7ff183 + c9512a8 commit 8c7cd3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ bool unpackFiles(std::string sDest) {
365365
size_t pos = name.find_last_of("/");
366366

367367
// If file is in sub directory?
368-
if (pos > 0) {
368+
if (pos != std::string::npos) {
369369
// Subdir path.
370370
std::string path = sDest;
371371
path += name.substr(0, pos);

0 commit comments

Comments
 (0)