the correct fix for emptry string campaign server
This commit is contained in:
parent
6905d3bc0c
commit
8102bc7d30
2 changed files with 1 additions and 2 deletions
|
@ -22,7 +22,6 @@
|
|||
#include "cursor.hpp"
|
||||
#include "dialogs.hpp"
|
||||
#include "game_display.hpp"
|
||||
#include "game_preferences.hpp"
|
||||
#include "filesystem.hpp"
|
||||
#include "font.hpp"
|
||||
#include "game_config.hpp"
|
||||
|
|
|
@ -180,7 +180,7 @@ void set_network_host(const std::string& host)
|
|||
|
||||
const std::string campaign_server()
|
||||
{
|
||||
if(preferences::get("campaign_server").empty())
|
||||
if(!preferences::get("campaign_server").empty())
|
||||
return preferences::get("campaign_server");
|
||||
else
|
||||
return "campaigns.wesnoth.org";
|
||||
|
|
Loading…
Add table
Reference in a new issue