Fixed possible access of a removed zap (#1665).

liquid_container
Clonkonaut 2016-03-28 19:21:29 +02:00
parent 6bdbc5b5c7
commit e6093ee2fc
1 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,8 @@ private func Enrage(proplist coordinates)
{
if (!enrage_target)
CheckTarget();
if (!this)
return false;
if (!enrage_target)
return false;
if (ObjectDistance(enrage_target) < 10)