Skip to content

Commit

Permalink
GUI: Handle kSourceArchive in switch
Browse files Browse the repository at this point in the history
  • Loading branch information
fdde authored and DrMcCoy committed Dec 29, 2017
1 parent 82c1c06 commit 0ffd88c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/resourcetreeitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ Common::SeekableReadStream *ResourceTreeItem::getResourceData() const {
throw Common::Exception("No archive opened");

return _data->_archive.data->getResource(_data->_archive.index);
default:
throw Common::Exception("kSourceArchive is not handled by getResourceData");
}
} catch (Common::Exception &e) {
e.add("Failed to get resource data for resource \"%s\"", _name.toStdString().c_str());
Expand Down

0 comments on commit 0ffd88c

Please sign in to comment.