Skip to content

Commit

Permalink
fix getNext for missiles
Browse files Browse the repository at this point in the history
  • Loading branch information
bobode committed Feb 15, 2016
1 parent 35ea452 commit e8a4992
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion D2BS.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <windows.h>
#include <vector>
Expand Down
3 changes: 3 additions & 0 deletions Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e8a4992

Please sign in to comment.