Skip to content

Commit

Permalink
GUI: Fix bug showing incorrect numbers caused by forgetting to assign…
Browse files Browse the repository at this point in the history
… sound variables
  • Loading branch information
fdde authored and DrMcCoy committed Dec 27, 2017
1 parent fe2b776 commit df87418
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/resourcetreeitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ ResourceTreeItem::ResourceTreeItem(QString fullPath, ResourceTreeItem *parent)
_resourceType = TypeMan.getResourceType(info.fileName().toStdString().c_str());
}

_soundData.triedDuration = _resourceType != Aurora::kResourceSound;
_soundData.duration = Sound::RewindableAudioStream::kInvalidLength;

_archive.data = nullptr;
_archive.addedMembers = false;
_archive.index = 0xFFFFFFFF;
Expand Down

0 comments on commit df87418

Please sign in to comment.