Skip to content

Commit ed5a20b

Browse files
committed
Fixed creating copies of the passed command map (which caused a crash)
1 parent 39fb61d commit ed5a20b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/modules/commands/commands.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ enum CommandReturn
4949
// Functions.
5050
//-----------------------------------------------------------------------------
5151
template<class InputMap, class Result>
52-
bool find_manager(InputMap input, const char* name, Result& result)
52+
bool find_manager(InputMap& input, const char* name, Result& result)
5353
{
5454
typename InputMap::iterator iter = input.begin();
5555
while (iter != input.end())

0 commit comments

Comments
 (0)