Fix a case where m_hdd_file is passed to m_file uninitialized.

Due to the way initializations work in C++, despite the order of the initializations in the initialization list, it will actually do the initializing in the order the class variables are defined.
This commit is contained in:
Lioncash 2014-03-30 00:08:16 -04:00
parent ae5d06d4be
commit 479ef45aec

View File

@ -423,11 +423,11 @@ public:
class vfsHDD : public vfsFileBase class vfsHDD : public vfsFileBase
{ {
vfsHDD_Hdr m_hdd_info; vfsHDD_Hdr m_hdd_info;
vfsLocalFile m_hdd_file;
const wxString& m_hdd_path;
vfsHDD_Entry m_cur_dir; vfsHDD_Entry m_cur_dir;
u64 m_cur_dir_block; u64 m_cur_dir_block;
vfsHDDFile m_file; vfsHDDFile m_file;
vfsLocalFile m_hdd_file;
const wxString& m_hdd_path;
public: public:
vfsHDD(vfsDevice* device, const wxString& hdd_path) vfsHDD(vfsDevice* device, const wxString& hdd_path)