mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-17 01:12:39 +01:00
Codechange: explicitly initialise OrderBackup and OrderList member variables
This commit is contained in:
@@ -43,12 +43,8 @@ OrderBackup::~OrderBackup()
|
||||
* @param v The vehicle to make a backup of.
|
||||
* @param user The user that is requesting the backup.
|
||||
*/
|
||||
OrderBackup::OrderBackup(const Vehicle *v, uint32_t user)
|
||||
OrderBackup::OrderBackup(const Vehicle *v, uint32_t user) : user(user), tile(v->tile), group(v->group_id)
|
||||
{
|
||||
this->user = user;
|
||||
this->tile = v->tile;
|
||||
this->group = v->group_id;
|
||||
|
||||
this->CopyConsistPropertiesFrom(v);
|
||||
|
||||
/* If we have shared orders, store the vehicle we share the order with. */
|
||||
|
||||
Reference in New Issue
Block a user