From 914335275b8a6e475e05081d13f0e48673a1ed7c Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Fri, 25 Dec 2020 21:03:29 -0800 Subject: [PATCH] Temporary fix for Phazon Suit crash on windows --- Runtime/Character/CSkinRules.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Runtime/Character/CSkinRules.hpp b/Runtime/Character/CSkinRules.hpp index f75dd51d5..770061b9c 100644 --- a/Runtime/Character/CSkinRules.hpp +++ b/Runtime/Character/CSkinRules.hpp @@ -45,6 +45,10 @@ public: void GetBankTransforms(std::vector& out, const CPoseAsTransforms& pose, int skinBankIdx) const { + // FIXME: This is definitely not proper behavior, this is here to fix the phazon suit crashing + if (x0_skinBanks.size() <= skinBankIdx) { + return; + } x0_skinBanks[skinBankIdx].GetBankTransforms(out, pose); }