src/fsmblockmap.cpp
branchNewGRF_ports
changeset 6758 1545d187ab64
parent 6751 08176dfe64b7
--- a/src/fsmblockmap.cpp	Sun Aug 05 17:30:37 2007 +0000
+++ b/src/fsmblockmap.cpp	Sun Aug 05 23:06:58 2007 +0000
@@ -15,6 +15,12 @@
 
 void FSMblockmap::PrintBlock(bool newline) const
 {
-	printf("%016" OTTD_PRINTF64 "x%016" OTTD_PRINTF64 "x", this->block_upper, this->block_lower);
+	printf("%016" OTTD_PRINTF64 "x%016" OTTD_PRINTF64 "x", this->GetUpper(), this->GetLower());
 	if (newline) printf("\n");
 }
+
+/* static */ void FSMblockmap::AssertOnWrongBlockOffset()
+{
+	FSMblockmap fsmb;
+	if ((void*)&fsmb != (void*)fsmb.blocks) NOT_REACHED();
+}