From 03cedbaf052582b3d07bdeaf87a023e93c985dd1 Mon Sep 17 00:00:00 2001 From: Light2 Date: Mon, 9 Jun 2014 02:37:47 +0200 Subject: [PATCH] minor changes --- scripts/radial/structure/structure_management_terminal.py | 2 +- src/resources/objects/building/BuildingObject.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/radial/structure/structure_management_terminal.py b/scripts/radial/structure/structure_management_terminal.py index 8bdc5878..98e5dc0a 100644 --- a/scripts/radial/structure/structure_management_terminal.py +++ b/scripts/radial/structure/structure_management_terminal.py @@ -45,7 +45,7 @@ def handleSelection(core, owner, target, option): return if option == 50: if owner is not None: - core.housingService.createRenameSUIPage(owner,target) + core.housingService.createRenameSUIPage(owner, owner.getGrandparent()) return if option == 127: if owner is not None: diff --git a/src/resources/objects/building/BuildingObject.java b/src/resources/objects/building/BuildingObject.java index 2247591e..e970df7c 100644 --- a/src/resources/objects/building/BuildingObject.java +++ b/src/resources/objects/building/BuildingObject.java @@ -260,7 +260,7 @@ public class BuildingObject extends TangibleObject implements IPersistent, Seria } public short getMaximumStorageCapacity() { - return (byte) otherVariables.get("maximumStorageCapacity"); + return (short) otherVariables.get("maximumStorageCapacity"); } public void setMaximumStorageCapacity(short maximumStorageCapacity) {