From b353ae37eb6d374aec4127f1849a5dce81f812b5 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Tue, 24 Jun 2014 18:52:00 -0700 Subject: No one is .neutral() here (except IPv4 addresses) --- src/map/magic-expr.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/map/magic-expr.cpp') diff --git a/src/map/magic-expr.cpp b/src/map/magic-expr.cpp index 3631ca7..b0e68fb 100644 --- a/src/map/magic-expr.cpp +++ b/src/map/magic-expr.cpp @@ -135,7 +135,7 @@ AString show_entity(dumb_ptr entity) case BL::ITEM: assert (0 && "There is no way this code did what it was supposed to do!"_s); /* Sorry about this one... */ - // WTF? item_data is a struct item, not a struct item_data + // WTF? item_data is a Item, not a struct item_data // return ((struct item_data *) (&entity->is_item()->item_data))->name; abort(); case BL::SPELL: @@ -796,7 +796,7 @@ int fun_hash_entity(dumb_ptr, val_t *result, Slice args) } // ret -1: not a string, ret 1: no such item, ret 0: OK -int magic_find_item(Slice args, int index, struct item *item_, int *stackable) +int magic_find_item(Slice args, int index, Item *item_, int *stackable) { struct item_data *item_data; int must_add_sequentially; @@ -821,7 +821,7 @@ int magic_find_item(Slice args, int index, struct item *item_, int *stack if (stackable) *stackable = !must_add_sequentially; - *item_ = item(); + *item_ = Item(); item_->nameid = item_data->nameid; return 0; @@ -832,7 +832,7 @@ int fun_count_item(dumb_ptr, val_t *result, Slice args) { dumb_ptr chr = (ENTITY_TYPE(0) == BL::PC) ? ARGPC(0) : NULL; int stackable; - struct item item; + Item item; GET_ARG_ITEM(1, item, stackable); @@ -848,7 +848,7 @@ int fun_is_equipped(dumb_ptr, val_t *result, Slice args) { dumb_ptr chr = (ENTITY_TYPE(0) == BL::PC) ? ARGPC(0) : NULL; int stackable; - struct item item; + Item item; bool retval = false; GET_ARG_ITEM(1, item, stackable); -- cgit v1.2.3-60-g2f50