v14.03 by Yohann

This commit is contained in:
ChaosMarc
2021-09-01 09:40:52 +02:00
parent e9fe6cb433
commit 64792db947
18 changed files with 101 additions and 89 deletions

View File

@@ -355,11 +355,7 @@ DWORD loadStashList(Unit* ptChar, BYTE* data, DWORD maxSize, DWORD* curSize, boo
}
}
if (nbStash == 1)
{
newStash = addStash(ptChar, isShared, true, newStash);
changeToSelectedStash(ptChar, newStash, 0, false);
}
changeToSelectedStash(ptChar, isShared?PCPY->sharedStash:PCPY->selfStash, 0, false);
return 0;
}

View File

@@ -63,6 +63,7 @@ Unit* FASTCALL updateItem(Game* ptGame, DWORD type, DWORD itemNum, Unit* ptChar)
if (ptGame->isLODGame && (D2ItemGetPage(ptItem) == 4))
{
Stash* ptStash = getStashFromItem(ptChar, ptItem);
//log_msg("- updateItem PCPY->currentStash->id : %d // ptStash->id : %d\n", PCPY->currentStash?PCPY->currentStash->id:-1, ptStash?ptStash->id:-1);
if (!ptStash) return NULL;
selectStash(ptChar, ptStash, ptStash->id == 0);
}

Binary file not shown.

Binary file not shown.

View File

@@ -6,7 +6,7 @@
=================================================================*/
#pragma once
#define PLUGY_VERSION "14.02"
#define PLUGY_VERSION "14.03"
enum TargetMod
{