Fixed wrong energy level in CBot (mentioned in #601)

master
krzys-h 2015-08-24 21:14:19 +02:00
parent 6ed83bb63f
commit 07141f6d90
1 changed files with 1 additions and 1 deletions

View File

@ -3883,7 +3883,7 @@ void CScriptFunctions::uObject(CBotVar* botThis, void* user)
// Updates the energy level of the object.
pVar = pVar->GetNext(); // "energyLevel"
value = object->GetEnergy();
value = object->GetEnergyLevel();
pVar->SetValFloat(value);
// Updates the shield level of the object.