mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-25 04:17:59 +01:00
Add empty construcor to Paths
This commit is contained in:
parent
0eefd29446
commit
18f2e420be
1 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,9 @@ package org.pgpainless.wot.dijkstra.sq
|
|||
|
||||
class Paths(val paths: MutableList<Item>) {
|
||||
|
||||
constructor():
|
||||
this(mutableListOf<Item>())
|
||||
|
||||
fun add(path: Path, amount: Int) {
|
||||
require(amount <= path.amount) {
|
||||
"Amount too small. TODO: Better error message"
|
||||
|
|
Loading…
Reference in a new issue