Script: FindConstructionSite returns 0 when the search fails

Günther Brammer 2010-12-04 23:48:17 +01:00
parent 0a36b23a18
commit 471b546c56
1 changed files with 1 additions and 0 deletions

View File

@ -1921,6 +1921,7 @@ static C4ValueArray *FnFindConstructionSite(C4AulContext *cthr, C4PropList * Pro
pDef->Shape.Wdt,pDef->Shape.Hgt,
pDef->Category,
20);
if(!result) return 0;
C4ValueArray *pArray = new C4ValueArray(2);
pArray->SetItem(0, C4VInt(v1));
pArray->SetItem(1, C4VInt(v2));