Skip to content

Commit 293cd26

Browse files
committed
add enum for m_type
1 parent 2e9b5d0 commit 293cd26

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

GolDP/include/boundingshape0x2c.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ class BoundingShape0x2c {
1515
public:
1616
// SIZE: 0x20
1717
struct StructField0x08 {
18-
undefined2 m_type;
18+
enum {
19+
e_type0 = 0,
20+
e_type1 = 1,
21+
};
22+
23+
LegoU16 m_type;
1924
LegoS16 m_unk0x02;
2025
union {
2126
struct {

GolDP/src/boundingshape0x2c.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void BoundingShape0x2c::FUN_1001b010(GolFileParser& p_parser)
9696
GolFileParser::ParserTokenType type = p_parser.GetNextToken();
9797
StructField0x08* obj = &m_unk0x08[i];
9898
if (type == GolFileParser::e_unknown0x28) {
99-
obj->m_type = 0;
99+
obj->m_type = StructField0x08::e_type0;
100100
obj->m_unk0x04.t0.m_unk0x10 = 0;
101101
obj->m_unk0x04.t0.m_unk0x14 = 0;
102102
if (p_parser.ReadInteger() < 0) {
@@ -127,7 +127,7 @@ void BoundingShape0x2c::FUN_1001b010(GolFileParser& p_parser)
127127
obj->m_unk0x04.t0.m_unk0x0c = p_parser.ReadFloat();
128128
}
129129
else if (type == GolFileParser::e_unknown0x29) {
130-
obj->m_type = 1;
130+
obj->m_type = StructField0x08::e_type1;
131131
if (p_parser.ReadInteger() < 0) {
132132
obj->m_unk0x02 = -1;
133133
m_unk0x0c = obj;

0 commit comments

Comments
 (0)