Browse Source

Fixed order of parameters when updating resource cache file (fixes #31930)

PouleyKetchoupp 6 years ago
parent
commit
c6ddaacf59
1 changed files with 2 additions and 1 deletions
  1. 2 1
      editor/editor_resource_preview.cpp

+ 2 - 1
editor/editor_resource_preview.cpp

@@ -295,8 +295,9 @@ void EditorResourcePreview::_thread() {
 								//update modified time
 
 								f = FileAccess::open(file, FileAccess::WRITE);
-								f->store_line(itos(modtime));
+								f->store_line(itos(thumbnail_size));
 								f->store_line(itos(has_small_texture));
+								f->store_line(itos(modtime));
 								f->store_line(md5);
 								memdelete(f);
 							}