changed all non-owned unique_ptr access to reference to the object itself
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
#include "curses_input.h"
|
||||
|
||||
curses_input::curses_input(const std::unique_ptr<cursor> &new_curse):
|
||||
curses_input::curses_input(cursor &new_curse):
|
||||
curse{new_curse} {}
|
||||
|
||||
game_command curses_input::get_command() {
|
||||
switch (curse->getcmd()) {
|
||||
switch (curse.getcmd()) {
|
||||
case 'h':
|
||||
return game_command::move_west;
|
||||
|
||||
@ -51,7 +51,7 @@ game_command curses_input::get_command() {
|
||||
return game_command_pass;
|
||||
}
|
||||
|
||||
switch (curse->getcmd()) {
|
||||
switch (curse.getcmd()) {
|
||||
case 'h':
|
||||
return game_command::apply_west;
|
||||
|
||||
|
Reference in New Issue
Block a user