mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-13 01:20:34 +02:00
Some compile fixes.
This commit is contained in:
@ -653,7 +653,7 @@ struct StandardReceiverVisitor : boost::static_visitor<>
|
|||||||
{
|
{
|
||||||
ERM::TBodyOptionItem boi = params[0];
|
ERM::TBodyOptionItem boi = params[0];
|
||||||
boost::apply_visitor(
|
boost::apply_visitor(
|
||||||
OptionPerformer(*const_cast<OptionPerformer::TReceiverType*>(static_cast<const OptionPerformer::TReceiverType*>(this))), boi);
|
OptionPerformer(*const_cast<typename OptionPerformer::TReceiverType*>(static_cast<const typename OptionPerformer::TReceiverType*>(this))), boi);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw EScriptExecError("This receiver option takes exactly 1 parameter!");
|
throw EScriptExecError("This receiver option takes exactly 1 parameter!");
|
||||||
@ -671,7 +671,7 @@ struct StandardReceiverVisitor : boost::static_visitor<>
|
|||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
boost::apply_visitor(
|
boost::apply_visitor(
|
||||||
OptionPerformer<0>(*const_cast<OptionPerformer<0>::TReceiverType*>(static_cast<const OptionPerformer<0>::TReceiverType*>(this))), boi);
|
OptionPerformer<0>(*const_cast<typename OptionPerformer<0>::TReceiverType*>(static_cast<const typename OptionPerformer<0>::TReceiverType*>(this))), boi);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw EScriptExecError("Wrong number of option code!");
|
throw EScriptExecError("Wrong number of option code!");
|
||||||
|
@ -551,6 +551,6 @@ public:
|
|||||||
if(obj)
|
if(obj)
|
||||||
return obj;
|
return obj;
|
||||||
else
|
else
|
||||||
throw EScriptExecError("Wrong cast attempted, object is not of a desired type!");
|
throw VERMInterpreter::EScriptExecError("Wrong cast attempted, object is not of a desired type!");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user