mirror of https://github.com/AxioDL/metaforce.git
TSegIdMap: Make use of std::array where applicable
Stronger typing and eliminates array to pointer decay.
This commit is contained in:
parent
fe642bde8b
commit
f24559890a
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <map>
|
#include <array>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ class TSegIdMap {
|
||||||
CSegId x0_boneCount = 0;
|
CSegId x0_boneCount = 0;
|
||||||
CSegId x1_capacity = 0;
|
CSegId x1_capacity = 0;
|
||||||
u32 x4_maxCapacity = 100;
|
u32 x4_maxCapacity = 100;
|
||||||
std::pair<CSegId, CSegId> x8_indirectionMap[100];
|
std::array<std::pair<CSegId, CSegId>, 100> x8_indirectionMap;
|
||||||
std::unique_ptr<T[]> xd0_bones;
|
std::unique_ptr<T[]> xd0_bones;
|
||||||
CSegId xd4_curPrevBone = 0;
|
CSegId xd4_curPrevBone = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue