[ZScript] Wrong message on non-existant class/struct member

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
phantombeta
Posts: 2088
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

[ZScript] Wrong message on non-existant class/struct member

Post by phantombeta »

When you try to access a class or struct member that doesn't exist, GZDoom fails to start with "Left side of <x> is not a struct or class".
For example,

Code: Select all

Font.CR_DOESNTEXIST
makes GZDoom fail to start with "Left side of CR_DOESNTEXIST is not a struct or class".

Example code:

Code: Select all

version "2.4"

class ThisMakesGZDoomFailToStart : Actor {
    void Test () {
        int colour = Font.CR_DOESNTEXIST;
    }
}
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: [ZScript] Wrong message on non-existant class/struct mem

Post by _mental_ »

Fixed in 48f9e53.
Post Reply

Return to “Closed Bugs [GZDoom]”