Skip to content

Commit

Permalink
Actually run console input.
Browse files Browse the repository at this point in the history
Note to self: save code before committing.
  • Loading branch information
num0005 committed Jul 25, 2018
1 parent e933690 commit c40dd7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion H2Codez/H2Sapien/Console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ bool __stdcall on_console_input(WORD keycode)
history_view_inital = true;
if (strnlen_s(console_input, 0x100) > 0)
{

H2SapienConsole::run_hs_command(console_input);
update_console_state();
}
else {
Expand Down
2 changes: 1 addition & 1 deletion H2Codez/util/RingBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class RingBuffer
*/
void push(const Type &value)
{
_data[_next_index] = value;
_data.insert(_data.begin() + _next_index, value);
_next_index = (_next_index + 1) % _max_size;
if (_next_index == 0)
_full = true;
Expand Down

0 comments on commit c40dd7b

Please sign in to comment.