summaryrefslogtreecommitdiff
path: root/src/newgrf_object.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf_object.h')
-rw-r--r--src/newgrf_object.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/newgrf_object.h b/src/newgrf_object.h
index 5aaf5c286..cf8b6a9de 100644
--- a/src/newgrf_object.h
+++ b/src/newgrf_object.h
@@ -88,6 +88,12 @@ struct ObjectSpec {
Money GetClearCost() const { return (_price[PR_CLEAR_OBJECT] * this->clear_cost_multiplier); }
/**
+ * Gets the index of this spec.
+ * @return The index.
+ */
+ uint Index() const;
+
+ /**
* Get the specification associated with a specific ObjectType.
* @param index The object type to fetch.
* @return The specification.