mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Fix #63: don't use reference arguments in openFileInPackage
This commit is contained in:
@@ -190,7 +190,7 @@ unique_ptr<wxInputStream> Package::openIn(const String& file) {
|
||||
if (!file.empty() && file.GetChar(0) == _('/')) {
|
||||
// absolute path, open file from another package
|
||||
Packaged* p = dynamic_cast<Packaged*>(this);
|
||||
return package_manager.openFileFromPackage(p, file);
|
||||
return package_manager.openFileFromPackage(p, file).first;
|
||||
}
|
||||
FileInfos::iterator it = files.find(normalize_internal_filename(file));
|
||||
if (it == files.end()) {
|
||||
|
||||
Reference in New Issue
Block a user