message: Tweaks: fix AddPrestigeclassCasterLevels hook
diff: @@ -50,7 +50,7 @@ AddPrestigeclassCasterLevels::AddPrestigeclassCasterLevels(Services::HooksProxy*
  s_bAdjustCasterLevel = false;
  return retVal;
  }, Hooking::Order::Early);
  - s_ExecuteCommandResistSpellHook = hooker->Hook(Functions::_ZN11CGameEffect10SetCreatorEj,
  + s_SetCreatorHook = hooker->Hook(Functions::_ZN11CGameEffect10SetCreatorEj,
  (void*)+[](CGameEffect *thisPtr, ObjectID oidCreator)
  {
  s_bAdjustCasterLevel = true;
  @@ -89,9 +89,11 @@ uint8_t AddPrestigeclassCasterLevels::CNWSCreatureStats__GetClassLevel(CNWSCreat
  if (s_bAdjustCasterLevel && nMultiClass < thisPtr->m_nNumMultiClasses)
  {
  - int32_t nModifier = 0;
  auto nClass = thisPtr->m_ClassInfo[nMultiClass].m_nClass;
  + if (nClass != Constants::ClassType::Invalid)
  + {
  + int32_t nModifier = 0;
  s_bAdjustCasterLevel = false;
  if (auto nCasterType = s_classCasterType[nClass])
  @@ -124,6 +126,7 @@ uint8_t AddPrestigeclassCasterLevels::CNWSCreatureStats__GetClassLevel(CNWSCreat
  retVal += nModifier;
  }
  + }
  return retVal;
  }
  