ThePhrozenKeep / D2MOO

Reimplementation of the Diablo2 game coupled with patching facilities for modders.
MIT License
93 stars 29 forks source link

[D2Game] Error PLRTRADE_HandleCubeInteraction #95

Closed thaison1995 closed 1 year ago

thaison1995 commented 1 year ago

if (pCubeMainTxtRecord->bOp = 0)-> the variable (bOpConditionsFulfilled) is always = false. while the function below has the condition variable (bOpConditionsFulfilled >= 1)

repair

....
switch (pCubeMainTxtRecord->nOp)
{
     ...
     default:
       break;
}

to

....
switch (pCubeMainTxtRecord->nOp)
{
     ...
    default:
    {
          bOpConditionsFulfilled = true;
          break;
    }
}
Lectem commented 1 year ago

Thanks for the report!