Page MenuHomeFeedback Tracker

DayZ 1.21: Well's IsWell() method incorrectly returns false
Closed, ResolvedPublic

Description

Calling IsWell() on a Well object returns false.

The problem is that DayZ 1.21 changed the IsWell method as follows:

class Well extends BuildingSuper
{
    // ...
    override bool IsWell()
    {
        return GetWaterSourceObjectType();
    }
    
    override EWaterSourceObjectType GetWaterSourceObjectType()
    {
        return EWaterSourceObjectType.WELL;
    }

However, if you look at the definition of EWaterSourceObjectType.WELL:

enum EWaterSourceObjectType
{
    NONE     = -1,
    WELL     = 0,
    THROUGH = 1
}

You can see that this means that IsWell() returns 0, which is the same as false.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Call IsWell() on a well object and observe the result. It should return true but instead returns false.

Event Timeline

tjensen created this task.May 24 2023, 2:24 AM
Geez changed the task status from New to Confirmed Internally.May 24 2023, 10:49 AM
Geez closed this task as Resolved.May 24 2023, 4:25 PM
Geez claimed this task.
Geez added a subscriber: Geez.

Resolved for the next update :)