Make sure all members are initialized in the constructor.
This commit is contained in:
parent
0d2acedd9b
commit
9f706cb18c
1 changed files with 7 additions and 4 deletions
|
@ -44,12 +44,15 @@ namespace {
|
|||
|
||||
struct player_controller
|
||||
{
|
||||
player_controller()
|
||||
{}
|
||||
player_controller() :
|
||||
controller(),
|
||||
description()
|
||||
{}
|
||||
|
||||
player_controller(const std::string& controller, const std::string& description) :
|
||||
controller(controller), description(description)
|
||||
{}
|
||||
controller(controller),
|
||||
description(description)
|
||||
{}
|
||||
|
||||
std::string controller;
|
||||
std::string description;
|
||||
|
|
Loading…
Add table
Reference in a new issue