mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Some compile fixes.
This commit is contained in:
@ -653,7 +653,7 @@ struct StandardReceiverVisitor : boost::static_visitor<>
|
||||
{
|
||||
ERM::TBodyOptionItem boi = params[0];
|
||||
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
|
||||
throw EScriptExecError("This receiver option takes exactly 1 parameter!");
|
||||
@ -671,7 +671,7 @@ struct StandardReceiverVisitor : boost::static_visitor<>
|
||||
{
|
||||
case 0:
|
||||
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;
|
||||
default:
|
||||
throw EScriptExecError("Wrong number of option code!");
|
||||
|
@ -551,6 +551,6 @@ public:
|
||||
if(obj)
|
||||
return obj;
|
||||
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