Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[469c] Misleading compiler message, when try declare struct inside function #1403

Closed
SeriousBuggie opened this issue Oct 7, 2023 · 0 comments
Labels
bug This is a confirmed bug internal-fam UnrealEd This is an issue in Unreal Editor
Milestone

Comments

@SeriousBuggie
Copy link
Collaborator

function checkWeaponForAmmo() {
	local string Header;

        struct PointRegion
        {
	        var zoneinfo Zone;       // Zone.
	        var int      iLeaf;      // Bsp leaf.
	        var byte     ZoneNumber; // Zone number.
        };

Log: Error in MapChecker, Line 3565: Enums can only be declared in class or struct scope

In message mention "Enums", not "Structs".

@SeriousBuggie SeriousBuggie added bug This is a confirmed bug UnrealEd This is an issue in Unreal Editor internal-pf internal-fam and removed internal-pf labels Oct 11, 2023
@stijn-volckaert stijn-volckaert added this to the 469d milestone Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This is a confirmed bug internal-fam UnrealEd This is an issue in Unreal Editor
Projects
None yet
Development

No branches or pull requests

2 participants