diff --git a/distribution/openrct2.d.ts b/distribution/openrct2.d.ts index 6823cf158a..2ce5e01f6b 100644 --- a/distribution/openrct2.d.ts +++ b/distribution/openrct2.d.ts @@ -1098,9 +1098,9 @@ declare global { */ interface Entity { /** - * The entity index within the entity list. + * The entity index within the entity list. Returns null for invalid entities. */ - readonly id: number; + readonly id: number | null; /** * The type of entity, e.g. guest, vehicle, etc. */