Skip to content

Commit

Permalink
Do not apply item validation to Single Player games
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCWills authored and AJenbo committed Nov 27, 2024
1 parent 9427513 commit d8811eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/items/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ bool IsDungeonItemValid(uint16_t iCreateInfo, uint32_t dwBuff)

bool IsItemValid(const Player &player, const Item &item)
{
if (!gbIsMultiplayer)
return true;

if (item.IDidx != IDI_GOLD && !IsCreationFlagComboValid(item._iCreateInfo))
return false;

Expand Down

0 comments on commit d8811eb

Please sign in to comment.