1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-22 12:39:59 +00:00

Add enabled check to animation script commands

(Fixes #3793)
This commit is contained in:
Allofich 2017-04-21 23:22:55 +09:00
parent 7998583a7b
commit 143ee387cc

View File

@ -42,6 +42,9 @@ namespace MWScript
{
MWWorld::Ptr ptr = R()(runtime);
if (!ptr.getRefData().isEnabled())
return;
std::string group = runtime.getStringLiteral (runtime[0].mInteger);
runtime.pop();
@ -69,6 +72,9 @@ namespace MWScript
{
MWWorld::Ptr ptr = R()(runtime);
if (!ptr.getRefData().isEnabled())
return;
std::string group = runtime.getStringLiteral (runtime[0].mInteger);
runtime.pop();