Quantcast
Channel: The Battle for Wesnoth Forums
Viewing all articles
Browse latest Browse all 2124

Users’ Forum • Re: Reflection Modification

$
0
0
20240310 19:42:29 warning scripting/lua: Cannot resolve variable 'new_reflection_animations[].offset' for reading.
I looked into this again and I think I fixed it.

Code:

new_reflection_animations[$i].offset
: appears twice and the second one seems to be causing the warnings because it may be outside the "for i loop" so $i is null. I changed it to index 0 (because all surrounding code was using that index) and presto, no more warnings. Hope that helps or at least points towards the correct fix.

Whether it looks nicer now... hehe, hard to tell. As usual there's a good chance it doesn't matter. : )

Keeps my logs clearer anyways! LOL.

Statistics: Posted by Atreides — Yesterday, 8:48 pm



Viewing all articles
Browse latest Browse all 2124

Trending Articles