mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-26 02:19:18 +01:00
Disambiguate ObjectId to GameObjectId and EntityId
This commit is contained in:
parent
61f47449fd
commit
8d5f2bdf51
6 changed files with 23 additions and 18 deletions
|
|
@ -83,16 +83,16 @@ internal sealed partial class ObjectTable : IServiceType, IObjectTable
|
|||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public GameObject? SearchById(ulong objectId)
|
||||
public GameObject? SearchById(ulong gameObjectId)
|
||||
{
|
||||
_ = this.WarnMultithreadedUsage();
|
||||
|
||||
if (objectId is GameObject.InvalidGameObjectId or 0)
|
||||
if (gameObjectId is 0)
|
||||
return null;
|
||||
|
||||
foreach (var e in this.cachedObjectTable)
|
||||
{
|
||||
if (e.Update() is { } o && o.ObjectId == objectId)
|
||||
if (e.Update() is { } o && o.GameObjectId == gameObjectId)
|
||||
return o;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue