Skip to content

Commit

Permalink
Fixed skipping already present creatures/gameobject with guid > uint max
Browse files Browse the repository at this point in the history
  • Loading branch information
mdX7 committed Dec 29, 2023
1 parent 20c6420 commit 329ad8e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions WowPacketParser/SQL/SQLDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,9 @@ public static RowList<CreatureDB> GetCreatures(RowList<CreatureDB> rowList = nul
{
var creature = new CreatureDB();

creature.DbGuid = reader.GetUInt32(0);
creature.DbGuid = reader.GetUInt64(0);
creature.ID = reader.GetUInt32(1);
creature.Map = reader.GetUInt32(2);
creature.Map = reader.GetUInt16(2);
creature.PosX = reader.GetDecimal(3);
creature.PosY = reader.GetDecimal(4);
creature.PosZ = reader.GetDecimal(5);
Expand Down Expand Up @@ -549,9 +549,9 @@ public static RowList<GameObjectDB> GetGameObjects(RowList<GameObjectDB> rowList
{
var go = new GameObjectDB();

go.DbGuid = reader.GetUInt32(0);
go.DbGuid = reader.GetUInt64(0);
go.ID = reader.GetUInt32(1);
go.Map = reader.GetUInt32(2);
go.Map = reader.GetUInt16(2);
go.PosX = reader.GetDecimal(3);
go.PosY = reader.GetDecimal(4);
go.PosZ = reader.GetDecimal(5);
Expand Down
4 changes: 2 additions & 2 deletions WowPacketParser/Store/Objects/CreatureDB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ namespace WowPacketParser.Store.Objects
public sealed record CreatureDB : IDataModel
{
[DBFieldName("guid", true)]
public uint DbGuid;
public ulong DbGuid;
[DBFieldName("id")]
public uint ID;
[DBFieldName("map")]
public uint Map;
public ushort Map;
[DBFieldName("position_x")]
public decimal PosX;
[DBFieldName("position_y")]
Expand Down
4 changes: 2 additions & 2 deletions WowPacketParser/Store/Objects/GameObjectDB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ namespace WowPacketParser.Store.Objects
public sealed record GameObjectDB : IDataModel
{
[DBFieldName("guid", true)]
public uint DbGuid;
public ulong DbGuid;
[DBFieldName("id")]
public uint ID;
[DBFieldName("map")]
public uint Map;
public ushort Map;
[DBFieldName("position_x")]
public decimal PosX;
[DBFieldName("position_y")]
Expand Down

0 comments on commit 329ad8e

Please sign in to comment.