mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Reservoirs: Fix loading without nodes.
This commit is contained in:
1 parent
7f0102a881
commit
97ece018aa
1 file changed
+1
-1
@@ -310,7 +310,7 @@ class Reservoir(SQLSubModel):
|
||||
new_reservoir.set_as_deleted()
|
||||
|
||||
new_reservoir._node = None
|
||||
if node_id != -1:
|
||||
if node_id != -1 and node_id is not None:
|
||||
new_reservoir._node = next(
|
||||
filter(
|
||||
lambda n: n.id == node_id, data["nodes"]
|
||||
|
||||
Reference in new issue
Block a user