Skip to content

Commit

Permalink
Fix of the junk '0D' bytes in WLD files
Browse files Browse the repository at this point in the history
  • Loading branch information
Wohlstand committed Feb 20, 2015
1 parent 3ab1c44 commit f136007
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Editor/editing/edit_world/wld_files_io.cpp
Expand Up @@ -282,7 +282,8 @@ bool WorldEdit::saveFile(const QString &fileName, const bool addToRecent)
}

QFile file(fileName);
if (!file.open(QFile::WriteOnly | QFile::Text)) {
if (!file.open(QFile::WriteOnly))
{
QMessageBox::warning(this, tr("File save error"),
tr("Cannot save file %1:\n%2.")
.arg(fileName)
Expand Down

0 comments on commit f136007

Please sign in to comment.