The Watcher on 16/9/2014 at 21:05
Quote Posted by Mortal Monkey
Yep, twscript and even dh2 builds now. Publicscripts doesn't, though:
You need to help the compiler out a bit by telling it which type is in the cMultiParm, so T1Scripts.cpp lines 1407 and 1413 can be fixed with static_cast<const char *>():
Code:
if (pPS->Possessed(ObjId(), "OTxtRepr0"))
{
cMultiParm mpTxRep;
pPS->Get(mpTxRep, ObjId(), "OTxtRepr0", NULL);
strTxRep = static_cast<const char *>(mpTxRep);
}
if (pPS->Possessed(ObjId(), "TrapQVar"))
{
cMultiParm mpQVar;
pPS->Get(mpQVar, ObjId(), "TrapQVar", NULL);
strQVar = static_cast<const char *>(mpQVar);
}