mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-12 13:13:27 +00:00
limit argument error workaround to PositionCell instruction (Fixes #1732)
This commit is contained in:
parent
80d39780ae
commit
736ab76f68
@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
#include "lineparser.hpp"
|
#include "lineparser.hpp"
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
#include <components/misc/stringops.hpp>
|
#include <components/misc/stringops.hpp>
|
||||||
|
|
||||||
#include "scanner.hpp"
|
#include "scanner.hpp"
|
||||||
@ -297,7 +299,12 @@ namespace Compiler
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ErrorDowngrade errorDowngrade (getErrorHandler());
|
// workaround for broken positioncell instructions.
|
||||||
|
/// \todo add option to disable this
|
||||||
|
std::auto_ptr<ErrorDowngrade> errorDowngrade (0);
|
||||||
|
if (Misc::StringUtils::lowerCase (loc.mLiteral)=="positioncell")
|
||||||
|
errorDowngrade.reset (new ErrorDowngrade (getErrorHandler()));
|
||||||
|
|
||||||
std::vector<Interpreter::Type_Code> code;
|
std::vector<Interpreter::Type_Code> code;
|
||||||
optionals = mExprParser.parseArguments (argumentType, scanner, code);
|
optionals = mExprParser.parseArguments (argumentType, scanner, code);
|
||||||
mCode.insert (mCode.begin(), code.begin(), code.end());
|
mCode.insert (mCode.begin(), code.begin(), code.end());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user