Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5e20d5ca
authored
Feb 02, 2018
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better fix
1 parent
2f3ac5ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
code/moya-beans/ejbModule/fi/codecrew/moya/beans/CardTemplateBean.java
code/moya-beans/ejbModule/fi/codecrew/moya/beans/CardTemplateBean.java
View file @
5e20d5c
...
...
@@ -171,7 +171,7 @@ public class CardTemplateBean implements CardTemplateBeanLocal {
PrintedCard
biggestCard
=
null
;
for
(
PrintedCard
card
:
myCards
)
{
if
(
biggestCard
==
null
||
biggestCard
.
getTemplate
().
getPower
()
<
card
.
getTemplate
().
getPower
(
))
{
if
(
card
.
getEnabled
()
&&
(
biggestCard
==
null
||
biggestCard
.
getTemplate
().
getPower
()
<
card
.
getTemplate
().
getPower
()
))
{
// The biggest card should be the only one enabled.
if
(
biggestCard
!=
null
)
{
biggestCard
.
setEnabled
(
false
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment