mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 16:45:17 -04:00
workaround for NPC activation crash
This commit is contained in:
parent
2628b5143c
commit
67a745cdf6
@ -421,6 +421,10 @@ void OMW::Engine::go()
|
|||||||
|
|
||||||
void OMW::Engine::activate()
|
void OMW::Engine::activate()
|
||||||
{
|
{
|
||||||
|
// TODO: This is only a workaround. The input dispatcher should catch any exceptions thrown inside
|
||||||
|
// the input handling functions. Looks like this will require an OpenEngine modification.
|
||||||
|
try
|
||||||
|
{
|
||||||
std::string handle = mEnvironment.mWorld->getFacedHandle();
|
std::string handle = mEnvironment.mWorld->getFacedHandle();
|
||||||
|
|
||||||
if (handle.empty())
|
if (handle.empty())
|
||||||
@ -452,6 +456,11 @@ void OMW::Engine::activate()
|
|||||||
{
|
{
|
||||||
interpreterContext.executeActivation();
|
interpreterContext.executeActivation();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch (const std::exception& e)
|
||||||
|
{
|
||||||
|
std::cerr << "Activation failed: " << e.what() << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OMW::Engine::setCompileAll (bool all)
|
void OMW::Engine::setCompileAll (bool all)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user