Was bedeutet No need to use 'Cast' for up-casting

  • Moin,


    kann mir bitte jemand erklären was das bedeutet und wie ich das beheben kann ?



    SCRIPT (W): @"WindstrideClothing/scripts/4_World/playerbase.c,13": Unsafe down-casting, use 'ItemBase.Cast' for safe down-casting

    SCRIPT (W): @"WindstrideClothing/scripts/4_World/playerbase.c,37": Unsafe down-casting, use 'ItemBase.Cast' for safe down-casting

    SCRIPT (W): @"WindstrideClothing/scripts/4_World/playerbase.c,56": Unsafe down-casting, use 'ItemBase.Cast' for safe down-casting

    SCRIPT (W): @"WindstrideClothing/scripts/4_World/playerbase.c,59": Unsafe down-casting, use 'ItemBase.Cast' for safe down-casting

    SCRIPT (W): @"WindstrideClothing/scripts/4_World/playerbase.c,60": Unsafe down-casting, use 'ItemBase.Cast' for safe down-casting

    SCRIPT (W): @"WindstrideClothing/scripts/4_World/playerbase.c,69": Unsafe down-casting, use 'ItemBase.Cast' for safe down-casting

    SCRIPT (W): @"WindstrideClothing/scripts/4_World/playerbase.c,79": Unsafe down-casting, use 'ItemBase.Cast' for safe down-casting

    SCRIPT (W): @"WindstrideClothing/scripts/4_World/playerbase.c,93": Unsafe down-casting, use 'ItemBase.Cast' for safe down-casting


    und


    SCRIPT (W): @"Dayz_Dog/Scripts/4_World/dog_types\doggos.c,98": No need to use 'Cast' for up-casting

    SCRIPT (W): @"Dayz_Dog/Scripts/4_World/dog_types\doggos.c,372": No need to use 'Cast' for up-casting

    SCRIPT (W): @"Dayz_Dog/Scripts/4_World/dog_types\doggos.c,393": No need to use 'Cast' for up-casting

    SCRIPT (W): @"Dayz_Dog/Scripts/4_World/dog_types\doggos.c,403": No need to use 'Cast' for up-casting

    SCRIPT (W): @"Dayz_Dog/Scripts/4_World/dog_types\doggos.c,413": No need to use 'Cast' for up-casting

    SCRIPT (W): @"Dayz_Dog/Scripts/4_World/dog_types\doggos.c,423": No need to use 'Cast' for up-casting

    SCRIPT (W): @"Dayz_Dog/Scripts/4_World/dog_types\doggos.c,433": No need to use 'Cast' for up-casting

    SCRIPT (W): @"Dayz_Dog/Scripts/4_World/dog_types\doggos.c,695": No need to use 'Cast' for up-casting

    SCRIPT (W): @"Dayz_Dog/Scripts/4_World/overrides\itembase.c,40": No need to use 'Cast' for up-casting

    SCRIPT (W): @"Dayz_Dog/Scripts/4_World/overrides\itembase.c,41": No need to use 'Cast' for up-casting

    SCRIPT (W): @"Dayz_Dog/Scripts/4_World/actions\actionstopcontrol.c,72": No need to use 'Cast' for up-casting

    SCRIPT (W): @"Dayz_Dog/Scripts/4_World/actions\actionstopcontrol.c,88": No need to use 'Cast' for up-casting

    SCRIPT (W): @"Dayz_Dog/Scripts/4_World/dogserverrpc.c,47": No need to use 'Cast' for up-casting

    SCRIPT (W): @"Dayz_Dog/Scripts/4_World/dogserverrpc.c,50": No need to use 'Cast' for up-casting

    SCRIPT (W): @"Dayz_Dog/Scripts/4_World/actions\actionfeeddog.c,98": No need to use 'Cast' for up-casting

    SCRIPT (W): @"Dayz_Dog/Scripts/4_World/actions\actioncontrol.c,82": No need to use 'Cast' for up-casting

    SCRIPT (W): @"Dayz_Dog/Scripts/4_World/overrides\playerbase.c,516": No need to use 'Cast' for up-casting


    wenn mir jemand erklären könnte was ich da ändern muss wäre ich schlauer.

    Ich kann immer noch keine Hunde rennen sehen ^^


    Mfg

    Chris :lovedayz:

  • Zitat

    Unsafe casting


    When you perform an operation that results in undefined behaviour, e.g. static-casting a pointer that doesn't point to an object of the casted type, the behaviour of your program is literally undefined: The standard does not define any specific behaviour. The platform is not required to do anything specific, any behaviour it shows is OK according to the standard.