Skip to content

Commit

Permalink
fix IsPowerAvailable function in power library
Browse files Browse the repository at this point in the history
  • Loading branch information
MDT-Maikel committed Dec 21, 2014
1 parent 305637b commit 1e5d5b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planet/Objects.ocd/Libraries.ocd/Power.ocd/Script.c
Expand Up @@ -281,7 +281,7 @@ public func GetPowerBalance()
public func IsPowerAvailable(object obj, int amount)
{
// Ignore object for now.
return power_balance > amount;
return power_balance >= amount;
}

public func Init()
Expand Down

0 comments on commit 1e5d5b5

Please sign in to comment.