Calling contract_manager() results in crash
SurFlurer opened this issue · 2 comments
What happened?
I'm trying to mess with contracts using KRPC.
My script looks like this:
#include <iostream>
#include <krpc.hpp>
#include <krpc/services/space_center.hpp>
int main()
{
krpc::Client conn = krpc::connect("Launch into orbit");
Vehicle v(conn);
krpc::services::SpaceCenter space_center(&conn);
auto cm = space_center.contract_manager();
}
When I run this while I'm at space center view, the program crashed with 0xc0000409.
How can someone else reproduce it?
Create a career game.
Start playing it.
Run the script above.
What is your environment?
C++ krpc client 0.5.4
KSP 1.12.5.3190 w/ making history and breaking ground
other mods:
BetterTimeWarp
000_ClickThroughBlocker
000_Harmony
000_Toolbar
000_ToolbarControl
KSPCommunityFixes
MechJeb2
ModuleManager
Anything else we need to know?
No response