From e0951fdafd18636f6170574b82b12b2ad50f6940 Mon Sep 17 00:00:00 2001 From: Kelly Kinkade Date: Tue, 4 Nov 2025 11:04:36 -0600 Subject: [PATCH] add `gps` to checked globals --- docs/changelog.txt | 1 + library/Core.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/changelog.txt b/docs/changelog.txt index bc72a8e33a..04b6fd6fd1 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -61,6 +61,7 @@ Template for new versions: ## Fixes ## Misc Improvements +- Core: added ``gps`` (``graphicst``) to the set of globals whose sizes must agree for DFHack to pass initialization checks ## Documentation diff --git a/library/Core.cpp b/library/Core.cpp index a6fc71fb2b..b927d49cc4 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -1682,6 +1682,7 @@ bool Core::InitMainThread() { { "world", sizeof(df::world) }, { "game", sizeof(df::gamest) }, { "plotinfo", sizeof(df::plotinfost) }, + { "gps", sizeof(df::graphic) }, }; for (auto& gte : *df::global::global_table)