diff --git a/src/iuse_actor.cpp b/src/iuse_actor.cpp index f2f3301fa796e..a5752e069f507 100644 --- a/src/iuse_actor.cpp +++ b/src/iuse_actor.cpp @@ -433,7 +433,7 @@ std::string iuse_transform::get_name() const return iuse_actor::get_name(); } -void iuse_transform::finalize( const itype_id &source ) +void iuse_transform::finalize( const itype_id &my_item_type ) { if( !item::type_is_defined( target ) && target_group.is_empty() ) { debugmsg( "Invalid transform target: %s", target.c_str() ); @@ -448,7 +448,7 @@ void iuse_transform::finalize( const itype_id &source ) // transform uses migration pocket if not } - if( source.obj().can_use( "link_up" ) ) { + if( my_item_type.obj().can_use( "link_up" ) ) { // The linkage logic currently assumes that the links persist // through transformation, and fails pretty badly (segfaults) // if that happens to not be the case. @@ -457,7 +457,7 @@ void iuse_transform::finalize( const itype_id &source ) // but we don't have any of those implemented right now, so the check stays. if( !target.obj().can_use( "link_up" ) ) { debugmsg( "Item %s has link_up action, yet transforms into %s which doesn't.", - source.c_str(), target.c_str() ); + my_item_type.c_str(), target.c_str() ); } } }