svn commit: r475877 - head/games/species/files
Tobias Kortkamp
tobik at FreeBSD.org
Mon Jul 30 09:49:56 UTC 2018
Author: tobik
Date: Mon Jul 30 09:49:55 2018
New Revision: 475877
URL: https://svnweb.freebsd.org/changeset/ports/475877
Log:
games/species: Fix build on 12.0-CURRENT
kingdom.cpp:149:19: error: assigning to 'bool' from incompatible type 'std::__1::fstream' (aka 'basic_fstream<char>')
_in_experiment = fs;
^~
http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475478_s336801/logs/errors/species-1.2d_1.log
Added:
head/games/species/files/patch-kingdom.cpp (contents, props changed)
Added: head/games/species/files/patch-kingdom.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/species/files/patch-kingdom.cpp Mon Jul 30 09:49:55 2018 (r475877)
@@ -0,0 +1,15 @@
+kingdom.cpp:149:19: error: assigning to 'bool' from incompatible type 'std::__1::fstream' (aka 'basic_fstream<char>')
+ _in_experiment = fs;
+ ^~
+
+--- kingdom.cpp.orig 2018-07-30 09:43:22 UTC
++++ kingdom.cpp
+@@ -146,7 +146,7 @@ void CKingdom::load(const bool runnable) {
+ }
+ fs.clear();
+ fs.open("species.dat",ios::in|ios::binary); // open data file
+- _in_experiment = fs;
++ _in_experiment = fs.is_open();
+ if(!_in_experiment) { // couldn't open it?
+ if(verbose) {
+ cout << "species.dat failed; trying species.ini" << endl;
More information about the svn-ports-head
mailing list