Skip to content

Commit

Permalink
Fix bug preventing all DRT commands from working correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
leecbaker committed Mar 11, 2021
1 parent 62d245f commit 65e6747
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/lb_xplane/command_provider.cpp
Expand Up @@ -7,15 +7,15 @@ CommandProvider::CommandProvider(std::string name, std::string description, std:
{
cr = XPLMCreateCommand(name.c_str(), description.c_str());

if(bool(begin_func)) {
if(bool(this->begin_func)) {
XPLMRegisterCommandHandler(cr, CommandProvider::begin_handler, 1, static_cast<void *>(this));
}

if(bool(continue_func)) {
if(bool(this->continue_func)) {
XPLMRegisterCommandHandler(cr, CommandProvider::continue_handler, 1, static_cast<void *>(this));
}

if(bool(end_func)) {
if(bool(this->end_func)) {
XPLMRegisterCommandHandler(cr, CommandProvider::end_handler, 1, static_cast<void *>(this));
}
}
Expand Down

0 comments on commit 65e6747

Please sign in to comment.