Aul: Make sure CreateConstruction id parameter is valid (#702)

Nicolas Hake 2012-01-03 21:57:55 +01:00
parent 0b2e7d6230
commit c502ff6091
1 changed files with 4 additions and 0 deletions

View File

@ -153,6 +153,10 @@ static C4Object *FnCreateConstruction(C4AulContext *cthr,
C4PropList * PropList, long iXOffset, long iYOffset, Nillable<long> owner,
long iCompletion, bool fTerrain, bool fCheckSite)
{
// Make sure parameters are valid
if (!PropList || !PropList->GetDef())
return NULL;
// Local object calls override position offset, owner
if (cthr->Obj)
{