소스 검색

Merge pull request #5149 from comex/xx-map-interval

map_interval: Change field order to address uninitialized field warning
bunnei 5 년 전
부모
커밋
5cd051eced
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/video_core/buffer_cache/map_interval.h

+ 2 - 1
src/video_core/buffer_cache/map_interval.h

@@ -84,9 +84,10 @@ private:
     void FillFreeList(Chunk& chunk);
 
     std::vector<MapInterval*> free_list;
-    std::unique_ptr<Chunk>* new_chunk = &first_chunk.next;
 
     Chunk first_chunk;
+
+    std::unique_ptr<Chunk>* new_chunk = &first_chunk.next;
 };
 
 } // namespace VideoCommon