gui2/teditor_edit_side: Make controller_num ctor parameter a reference
This eliminates the stack corruption issue found by gfgtdf and makes the parameter work like the rest, though it should be noted that the caller doesn't do anything useful with it at the moment and needs to be fixed separately. (See also commit f16dec91b93f08844d999c9056d165951c980148.)
This commit is contained in:
parent
a26de26fdd
commit
dd8b36fb16
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ teditor_edit_side::teditor_edit_side(int side,
|
|||
bool& shroud,
|
||||
bool& share_maps,
|
||||
team::CONTROLLER& controller,
|
||||
int controller_num,
|
||||
int& controller_num,
|
||||
bool& no_leader,
|
||||
bool& hidden)
|
||||
: controller_(controller)
|
||||
|
|
|
@ -39,7 +39,7 @@ public:
|
|||
bool& shroud,
|
||||
bool& share_maps,
|
||||
team::CONTROLLER& controller,
|
||||
int controller_num,
|
||||
int& controller_num,
|
||||
bool& no_leader,
|
||||
bool& hidden);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue