From ba37c8618f983a74e55dafd15c2bf3278fa81ade Mon Sep 17 00:00:00 2001 From: qndel Date: Thu, 25 Feb 2021 10:14:02 +0100 Subject: [PATCH] fixtypos (#1053) --- Source/loadsave.cpp | 12 ++++++------ structs.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/loadsave.cpp b/Source/loadsave.cpp index 8386ce17c..61f1d0e5a 100644 --- a/Source/loadsave.cpp +++ b/Source/loadsave.cpp @@ -396,14 +396,14 @@ static void LoadPlayer(int i) tbuff += 1; pPlayer->pOriginalCathedral = true; } - tbuff += 2; // Avalible bytes + tbuff += 2; // Available bytes CopyShort(tbuff, &pPlayer->wReflections); - tbuff += 14; // Avalible bytes + tbuff += 14; // Available bytes CopyInt(tbuff, &pPlayer->pDiabloKillLevel); CopyInt(tbuff, &pPlayer->pDifficulty); CopyInt(tbuff, &pPlayer->pDamAcFlags); - tbuff += 20; // Avalible bytes + tbuff += 20; // Available bytes // Omit pointer _pNData // Omit pointer _pWData @@ -1263,14 +1263,14 @@ static void SavePlayer(int i) CopyChar(&pPlayer->pBattleNet, tbuff); CopyChar(&pPlayer->pManaShield, tbuff); CopyChar(&pPlayer->pOriginalCathedral, tbuff); - tbuff += 2; // Avalible bytes + tbuff += 2; // Available bytes CopyShort(&pPlayer->wReflections, tbuff); - tbuff += 14; // Avalible bytes + tbuff += 14; // Available bytes CopyInt(&pPlayer->pDiabloKillLevel, tbuff); CopyInt(&pPlayer->pDifficulty, tbuff); CopyInt(&pPlayer->pDamAcFlags, tbuff); - tbuff += 20; // Avalible bytes + tbuff += 20; // Available bytes // Omit pointer _pNData // Omit pointer _pWData diff --git a/structs.h b/structs.h index 3a53235ac..41a9545cf 100644 --- a/structs.h +++ b/structs.h @@ -217,7 +217,7 @@ typedef struct PlayerStruct { char _pSplLvl[64]; uint64_t _pMemSpells; // Bitmask of learned spells uint64_t _pAblSpells; // Bitmask of abilities - uint64_t _pScrlSpells; // Bitmask of spells avalible via scrolls + uint64_t _pScrlSpells; // Bitmask of spells available via scrolls UCHAR _pSpellFlags; int _pSplHotKey[4]; char _pSplTHotKey[4];