mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-20 20:29:10 +00:00
Fix string usage that was broken from enabling the Max plugin build
This commit is contained in:
@ -94,7 +94,7 @@ plCoopCoordinator::plCoopCoordinator()
|
||||
// ------------------
|
||||
plCoopCoordinator::plCoopCoordinator(plKey host, plKey guest,
|
||||
plAvBrainCoop *hostBrain, plAvBrainCoop *guestBrain,
|
||||
const char *synchBone,
|
||||
const plString &synchBone,
|
||||
uint32_t hostOfferStage, uint32_t guestAcceptStage,
|
||||
plMessage *guestAcceptMsg,
|
||||
bool autoStartGuest)
|
||||
@ -108,6 +108,7 @@ plCoopCoordinator::plCoopCoordinator(plKey host, plKey guest,
|
||||
fGuestAcceptStage(guestAcceptStage),
|
||||
fGuestAcceptMsg(guestAcceptMsg),
|
||||
fAutoStartGuest(autoStartGuest),
|
||||
fSynchBone(synchBone),
|
||||
fGuestAccepted(false),
|
||||
fGuestLinked(false)
|
||||
{
|
||||
@ -119,8 +120,6 @@ plCoopCoordinator::plCoopCoordinator(plKey host, plKey guest,
|
||||
|
||||
plKey newKey = hsgResMgr::ResMgr()->NewKey(newName, this, host->GetUoid().GetLocation());
|
||||
|
||||
fSynchBone = hsStrcpy(synchBone);
|
||||
|
||||
plKey avMgrKey = plAvatarMgr::GetInstance()->GetKey();
|
||||
|
||||
guestBrain->SetRecipient(avMgrKey);
|
||||
@ -136,13 +135,6 @@ plCoopCoordinator::plCoopCoordinator(plKey host, plKey guest,
|
||||
}
|
||||
}
|
||||
|
||||
// plCoopCoordinator ------------------
|
||||
// ------------------
|
||||
plCoopCoordinator::~plCoopCoordinator()
|
||||
{
|
||||
delete[] fSynchBone;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// CONSTRUCTORS
|
||||
@ -405,7 +397,7 @@ void plCoopCoordinator::Read(hsStream *stream, hsResMgr *mgr)
|
||||
else
|
||||
fGuestAcceptMsg = nil;
|
||||
|
||||
fSynchBone = stream->ReadSafeString();
|
||||
fSynchBone = stream->ReadSafeString_TEMP();
|
||||
fAutoStartGuest = stream->Readbool();
|
||||
|
||||
fInitiatorID = fHostBrain->GetInitiatorID();
|
||||
|
Reference in New Issue
Block a user