Skip to content

Commit

Permalink
Scripting: Fixed issue when closing/comitting BinaryFile
Browse files Browse the repository at this point in the history
ScriptBinaryFile::close was calling QIODevice::reset instead of
std::unique_ptr::reset.

Closes #2801
  • Loading branch information
bjorn committed May 20, 2020
1 parent c337f01 commit 68655d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tiled/scriptfile.cpp
Expand Up @@ -187,7 +187,7 @@ void ScriptBinaryFile::close()
if (checkForClosed())
return;

m_file->reset();
m_file.reset();
}

bool ScriptBinaryFile::checkForClosed() const
Expand Down

0 comments on commit 68655d7

Please sign in to comment.