From 8044ea108dc43746ada6cd8c9cc83cc7fd856919 Mon Sep 17 00:00:00 2001 From: Flugente Date: Mon, 6 Jan 2014 17:04:09 +0000 Subject: [PATCH] Fix: error message when repairing git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6733 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Laptop/CampaignStats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Laptop/CampaignStats.cpp b/Laptop/CampaignStats.cpp index d7e9d16a..b179f19f 100644 --- a/Laptop/CampaignStats.cpp +++ b/Laptop/CampaignStats.cpp @@ -672,7 +672,7 @@ Campaign_Stats::AddMoneyEarned(UINT8 aType, INT32 aVal) void Campaign_Stats::AddConsumption(UINT8 aType, FLOAT aVal) { - if ( aType >= CAMPAIGN_MONEY_MAX ) + if ( aType >= CAMPAIGN_CONSUMED_MAX ) { ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, L"Error: Unknown consumption type!" ); return;