From 193d7a13e141cca5fd05fe92405b475b41eb9b81 Mon Sep 17 00:00:00 2001 From: Pavel Stupnikov Date: Tue, 27 Dec 2016 19:05:24 +0300 Subject: [PATCH] Add industry type id to newgrf debug window --- src/newgrf_debug_gui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/newgrf_debug_gui.cpp b/src/newgrf_debug_gui.cpp index 3d9651bb9f..781a238b7e 100644 --- a/src/newgrf_debug_gui.cpp +++ b/src/newgrf_debug_gui.cpp @@ -459,6 +459,7 @@ struct NewGRFInspectWindow : Window { const void *base_spec = nih->GetSpec(index); uint i = 0; + this->DrawString(r, i++, "Industry type: %d", (int)((const Industry *)base)->type); if (nif->variables != NULL) { this->DrawString(r, i++, "Variables:"); for (const NIVariable *niv = nif->variables; niv->name != NULL; niv++) {