Skip to content

Commit

Permalink
Use new method to get entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Eli2 committed Dec 30, 2016
1 parent 0646398 commit f2453db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/Damage.cpp
Expand Up @@ -1485,8 +1485,8 @@ void ARX_DAMAGES_DamagePlayerEquipment(float damages)
ratio = 1.f;

for(size_t i = 0; i < MAX_EQUIPED; i++) {
if(ValidIONum(player.equiped[i])) {
Entity * todamage = entities[player.equiped[i]];
Entity * todamage = entities.get(player.equiped[i]);
if(todamage) {
ARX_DAMAGES_DurabilityCheck(todamage, ratio);
}
}
Expand Down

0 comments on commit f2453db

Please sign in to comment.