From e8a49926105e9645531f4c0533a4b1096be3c93f Mon Sep 17 00:00:00 2001 From: bobode Date: Mon, 15 Feb 2016 23:34:46 +0000 Subject: [PATCH] fix getNext for missiles --- D2BS.h | 2 +- Unit.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/D2BS.h b/D2BS.h index e8354bd0..ecb288b0 100644 --- a/D2BS.h +++ b/D2BS.h @@ -5,7 +5,7 @@ #define XP_WIN -#define D2BS_VERSION "1.5.1854" //uptodate with d branch 1765 ff 20b +#define D2BS_VERSION "1.5.1855" //uptodate with d branch 1765 ff 20b #include #include diff --git a/Unit.cpp b/Unit.cpp index 2567905b..f2eb6a41 100644 --- a/Unit.cpp +++ b/Unit.cpp @@ -167,6 +167,9 @@ UnitAny* GetNextUnit(UnitAny* pUnit, char* szName, DWORD dwClassId, if(!pUnit) return NULL; + if(dwType == 3) + return GetNextUnitFromTables(pUnit, p_D2CLIENT_ClientSideUnitHashTables, + dwType, dwType, szName, dwClassId, dwType, dwMode); if(dwType >= 0 && dwType <= 5) return GetNextUnitFromTables(pUnit, p_D2CLIENT_ServerSideUnitHashTables,