summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/pso/PSOV3Encryption.h4
-rw-r--r--include/pso/macros.h6
2 files changed, 7 insertions, 3 deletions
diff --git a/include/pso/PSOV3Encryption.h b/include/pso/PSOV3Encryption.h
index 0526cfb..966ff70 100644
--- a/include/pso/PSOV3Encryption.h
+++ b/include/pso/PSOV3Encryption.h
@@ -24,8 +24,8 @@ public:
virtual u32 next() override;
PRIVATE_MEMBER_ACCESSORS_ARRAY(u32, buffer, 522);
- PRIVATE_MEMBER_ACCESSORS(u32 *, buffer_start);
- PRIVATE_MEMBER_ACCESSORS(u32 *, buffer_end);
+ PRIVATE_MEMBER_ACCESSORS_NON_REF(u32 *, buffer_start);
+ PRIVATE_MEMBER_ACCESSORS_NON_REF(u32 *, buffer_end);
private:
TArray<u32, 522> m_buffer;
diff --git a/include/pso/macros.h b/include/pso/macros.h
index e93e2de..afe5400 100644
--- a/include/pso/macros.h
+++ b/include/pso/macros.h
@@ -85,7 +85,11 @@
}
#define PRIVATE_MEMBER_ACCESSORS(type, name) \
- PRIVATE_MEMBER_GETTER(type, name); \
+ PRIVATE_MEMBER_GETTER(type &, name); \
+ PRIVATE_MEMBER_SETTER(type, name)
+
+#define PRIVATE_MEMBER_ACCESSORS_NON_REF(type, name) \
+ PRIVATE_MEMBER_GETTER(type, name); \
PRIVATE_MEMBER_SETTER(type, name)
#define PRIVATE_MEMBER_ACCESSORS_ARRAY(type, name, size) \