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

empty for body causes parsing errors #2117

Open
amylizzle opened this issue Nov 30, 2024 · 0 comments
Open

empty for body causes parsing errors #2117

amylizzle opened this issue Nov 30, 2024 · 0 comments
Labels
Compiler Involves the OpenDream compiler

Comments

@amylizzle
Copy link
Contributor

amylizzle commented Nov 30, 2024

if (!contents_changed)
	return src.cached_producibility_data
for (var/obj/item/material_piece/M as anything in C)
// the body was not indented properly
var/list/output = list()
for (var/datum/manufacture/M as anything in ALL_BLUEPRINTS)
	var/M_ref = "\ref[M]"
	output[M_ref] = 1

this code threw unknown identifier errors on output. I'm pretty sure the empty for loop is eating the var def.

ideal output should probably be a warning on the empty for loop

@wixoaGit wixoaGit added the Compiler Involves the OpenDream compiler label Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler Involves the OpenDream compiler
Projects
None yet
Development

No branches or pull requests

2 participants