Apply suggestions from code review
Co-Authored-By: Pengfei Zhu <zhupf321@gmail.com>
This commit is contained in:
parent
4aab38f133
commit
bbf8e876ab
|
@ -5,7 +5,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include "boost/serialization/split_member.hpp"
|
#include <boost/serialization/split_member.hpp>
|
||||||
#include "common/bit_field.h"
|
#include "common/bit_field.h"
|
||||||
#include "common/common_types.h"
|
#include "common/common_types.h"
|
||||||
#include "common/vector_math.h"
|
#include "common/vector_math.h"
|
||||||
|
@ -239,7 +239,7 @@ private:
|
||||||
void load(Archive& ar, const unsigned int file_version) {
|
void load(Archive& ar, const unsigned int file_version) {
|
||||||
u32 offset{};
|
u32 offset{};
|
||||||
ar >> offset;
|
ar >> offset;
|
||||||
cmd_list.head_ptr = (u32*)VideoCore::g_memory->GetPhysicalPointer(cmd_list.addr);
|
cmd_list.head_ptr = reinterpret_cast<u32*>(VideoCore::g_memory->GetPhysicalPointer(cmd_list.addr));
|
||||||
cmd_list.current_ptr = cmd_list.head_ptr + offset;
|
cmd_list.current_ptr = cmd_list.head_ptr + offset;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Reference in New Issue