1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Corrected behaviour of File.READ_WRITE mode (fixes #378)

This commit is contained in:
Bil Bas (Spooner)
2015-02-16 20:59:16 +00:00
parent 2185c018f6
commit fba2d121b4
2 changed files with 2 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ Error FileAccessUnix::_open(const String& p_path, int p_mode_flags) {
else if (p_mode_flags==WRITE)
mode_string="wb";
else if (p_mode_flags==READ_WRITE)
mode_string="wb+";
mode_string="rb+";
else
return ERR_INVALID_PARAMETER;