Fix menu to scenario script callbacks

Sven Eberhardt 2012-03-17 14:26:58 +01:00
parent dee0811b23
commit fa2b8489fa
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ bool C4ObjectMenu::IsCloseDenied()
if (Object) fResult = !!Object->Call(PSF_MenuQueryCancel, &pars);
}
else if (eCallbackType == CB_Scenario)
fResult = !!::GameScript.Call(PSF_MenuQueryCancel, 0, &pars);
fResult = !!::GameScript.Call(PSF_MenuQueryCancel, &pars);
CloseQuerying = false;
if (fResult) return true;
}
@ -107,7 +107,7 @@ void C4ObjectMenu::OnSelectionChanged(int32_t iNewSelection)
if (eCallbackType == CB_Object && Object)
Object->Call(PSF_MenuSelection, &pars);
else if (eCallbackType == CB_Scenario)
::GameScript.Call(PSF_MenuSelection, 0, &pars);
::GameScript.Call(PSF_MenuSelection, &pars);
}
}