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 committed Dec 1, 2024
1 parent 67ab70d commit 1d3601f
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 @@ -141,6 +141,9 @@ bool IsDungeonItemValid(uint16_t iCreateInfo, uint32_t dwBuff)

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

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

Expand Down

0 comments on commit 1d3601f

Please sign in to comment.