summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 9ec4ca28f..0bcca016c 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -254,7 +254,7 @@ impHandler(chatNuke)
if (!being)
return true;
- actorManager->addBlock(static_cast<uint32_t>(being->getId()));
+ actorManager->addBlock(being->getId());
actorManager->destroy(being);
return true;
}
@@ -268,7 +268,7 @@ impHandler(chatAdd)
return true;
const int id = atoi(event.args.c_str());
- if (!id)
+ if (id == 0)
return true;
Inventory *const inv = PlayerInfo::getInventory();
@@ -286,7 +286,8 @@ impHandler(chatAdd)
return true;
}
- const FloorItem *const floorItem = actorManager->findItem(id);
+ const FloorItem *const floorItem = actorManager->findItem(
+ fromInt(id, BeingId));
if (floorItem)
{