File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -190,9 +190,9 @@ namespace RE
190190 const auto mem = _allocator->Allocate (a_bytes, alignof (void *));
191191 if (!mem) {
192192 REX::FAIL (" failed to handle allocation request" );
193- } else {
194- return mem;
195193 }
194+
195+ return mem;
196196 }
197197
198198 void deallocate (void * a_ptr)
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ namespace RE
2323 class hknpWorldCinfo
2424 {
2525 public:
26- enum class LeavingBroadPhaseBehavior ;
26+ enum class LeavingBroadPhaseBehavior
2727 {
2828 kDoNothing = 0x0 ,
2929 kRemoveBody = 0x1 ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ namespace RE
1515
1616 // members
1717 std::uint16_t index; // 00
18- REX::EnumSet<QUEST_STAGE_DAGA ::Flags, std::uint8_t > flags; // 02
18+ REX::EnumSet<QUEST_STAGE_DATA ::Flags, std::uint8_t > flags; // 02
1919 };
2020 static_assert (sizeof (QUEST_STAGE_DATA) == 0x4 );
2121}
Original file line number Diff line number Diff line change @@ -159,11 +159,10 @@ namespace Scaleform
159159 [[nodiscard]] void * operator new (std::size_t a_count) \
160160 { \
161161 const auto mem = Scaleform::malloc (a_count); \
162- if (mem) { \
163- return mem; \
164- } else { \
162+ if (!mem) { \
165163 REX::FAIL (" out of memory" sv); \
166164 } \
165+ return mem; \
167166 } \
168167 \
169168 [[nodiscard]] void * operator new [](std::size_t a_count) \
You can’t perform that action at this time.
0 commit comments