diff --git a/Adventures in Lestoria/AdventuresInLestoria.cpp b/Adventures in Lestoria/AdventuresInLestoria.cpp index 200c7983..877efbb9 100644 --- a/Adventures in Lestoria/AdventuresInLestoria.cpp +++ b/Adventures in Lestoria/AdventuresInLestoria.cpp @@ -3996,7 +3996,7 @@ bool AiL::UseLoadoutItem(int slot,const std::optionaltargetingPos){ if(!ISBLANK(GetLoadoutItem(slot).lock())&&GetLoadoutItem(slot).lock()->Amt()>0){ Tutorial::GetTask(TutorialTaskName::USE_RECOVERY_ITEMS).I(A::ITEM_USE_COUNT)++; Inventory::UseItem(GetLoadoutItem(slot).lock()->ActualName(),1U,targetingPos); - if(game->GetCurrentMapName()!="HUB"){ + if(GameState::GetCurrentState()!=States::GAME_HUB){ Inventory::AddLoadoutItemUsed(GetLoadoutItem(slot).lock()->ActualName(),slot); GetLoadoutItem(slot).lock()->amt--; } diff --git a/Adventures in Lestoria/Item.cpp b/Adventures in Lestoria/Item.cpp index f059ebe0..1ba73d93 100644 --- a/Adventures in Lestoria/Item.cpp +++ b/Adventures in Lestoria/Item.cpp @@ -531,7 +531,9 @@ bool Inventory::UseItem(IT it,uint32_t amt,const std::optionaltargetingPos //There are two places to manipulate items in (Both the sorted inventory and the actual inventory) for(uint32_t i=0;i0){ vel.x=std::max(0.f,vel.x-friction*fElapsedTime); } else { diff --git a/Adventures in Lestoria/Version.h b/Adventures in Lestoria/Version.h index 5104aede..a70a5923 100644 --- a/Adventures in Lestoria/Version.h +++ b/Adventures in Lestoria/Version.h @@ -39,7 +39,7 @@ All rights reserved. #define VERSION_MAJOR 1 #define VERSION_MINOR 3 #define VERSION_PATCH 0 -#define VERSION_BUILD 11922 +#define VERSION_BUILD 11928 #define stringify(a) stringify_(a) #define stringify_(a) #a diff --git a/x64/Release/Adventures in Lestoria.exe b/x64/Release/Adventures in Lestoria.exe index f12c329b..7545efb9 100644 Binary files a/x64/Release/Adventures in Lestoria.exe and b/x64/Release/Adventures in Lestoria.exe differ