mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r12920) -Fix (r12859): town rating was affected even after the test run
This commit is contained in:
parent
0ddb481a33
commit
299b15c2bf
@ -2453,7 +2453,7 @@ void SetTownRatingTestMode(bool mode)
|
|||||||
static int ref_count = 0;
|
static int ref_count = 0;
|
||||||
if (mode) {
|
if (mode) {
|
||||||
if (ref_count == 0) {
|
if (ref_count == 0) {
|
||||||
_town_test_ratings.empty();
|
_town_test_ratings.clear();
|
||||||
}
|
}
|
||||||
ref_count++;
|
ref_count++;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user