Skip to content

Commit

Permalink
gui2/teditor_edit_side: Make controller_num ctor parameter a reference
Browse files Browse the repository at this point in the history
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 f16dec9.)
  • Loading branch information
irydacea committed Jun 5, 2015
1 parent a26de26 commit dd8b36f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/dialogs/editor/editor_edit_side.cpp
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/gui/dialogs/editor/editor_edit_side.hpp
Expand Up @@ -39,7 +39,7 @@ class teditor_edit_side : public tdialog
bool& shroud,
bool& share_maps,
team::CONTROLLER& controller,
int controller_num,
int& controller_num,
bool& no_leader,
bool& hidden);

Expand Down

0 comments on commit dd8b36f

Please sign in to comment.