I have gotten the below error when saving, twice without a crash (saving standing on a dock), and once with a crash (saving in a tavern). It isn't too frequent, but seems to happen every once in awhile, mostly without crashes. EDIT now another time saving in a tavern, this time without a crash.
(all saving shortly after character creation of julian mcalister as quatermaster start)
RUNTIME ERROR - file: seadogs.c; line: 749
Save - ARef to non existing attributes branch
Here are the lines, 749 is the very last one with only a }
Is there anything obviously wrong with this that would cause it?
void OnSave()
{
Set_inDialog_Attributes();//MAXIMUS: VERY strange, but it's needed
seadogs_saveFrom = "";
if (IsEntity(&worldMap)) {
seadogs_saveFrom = "world map"; //Was "seadogs_sav From" ccc mar20
return;
}
if (bSeaActive) {
seadogs_saveFrom = "sea";
SaveAtSea();
return;
}
int ldLoc = FindLoadedLocation();
if (ldLoc < 0 || ldLoc >= nLocationsNum) {
trace("OnSave() -> unknown character location");
return;
}
seadogs_saveFrom = "location";
SendMessage(&Locations[ldLoc], "l", MSG_LOCATION_SETCHRPOSITIONS);
LAi_group_SaveInfo();
PostEvent("SeaDogs_ClearSaveData", 200, "a", &Locations[ldLoc]);
}
(all saving shortly after character creation of julian mcalister as quatermaster start)
RUNTIME ERROR - file: seadogs.c; line: 749
Save - ARef to non existing attributes branch
Here are the lines, 749 is the very last one with only a }
Is there anything obviously wrong with this that would cause it?
void OnSave()
{
Set_inDialog_Attributes();//MAXIMUS: VERY strange, but it's needed
seadogs_saveFrom = "";
if (IsEntity(&worldMap)) {
seadogs_saveFrom = "world map"; //Was "seadogs_sav From" ccc mar20
return;
}
if (bSeaActive) {
seadogs_saveFrom = "sea";
SaveAtSea();
return;
}
int ldLoc = FindLoadedLocation();
if (ldLoc < 0 || ldLoc >= nLocationsNum) {
trace("OnSave() -> unknown character location");
return;
}
seadogs_saveFrom = "location";
SendMessage(&Locations[ldLoc], "l", MSG_LOCATION_SETCHRPOSITIONS);
LAi_group_SaveInfo();
PostEvent("SeaDogs_ClearSaveData", 200, "a", &Locations[ldLoc]);
}