mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-05 03:55:58 +01:00
Add empty construcor to Paths
This commit is contained in:
parent
2555893b19
commit
5341279d1f
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