From 0564d52d990bda72c6e63d16ce20e6f9572abcf1 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 10 Mar 2009 06:53:00 +0000 Subject: (svn r15662) -Fix (r11795): Don't mark a company as having ratings in a town when querying the cost of a command. --- src/town_cmd.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/town_cmd.cpp') diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index a73af923c..c8cdf6af4 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -2651,8 +2651,6 @@ void ChangeTownRating(Town *t, int add, int max, DoCommandFlag flags) return; } - SetBit(t->have_ratings, _current_company); - int rating = GetRating(t); if (add < 0) { if (rating > max) { @@ -2668,6 +2666,7 @@ void ChangeTownRating(Town *t, int add, int max, DoCommandFlag flags) if (_town_rating_test) { _town_test_ratings[t] = rating; } else { + SetBit(t->have_ratings, _current_company); t->ratings[_current_company] = rating; InvalidateWindow(WC_TOWN_AUTHORITY, t->index); } -- cgit v1.2.3-54-g00ecf