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

lua引擎崩溃的bug #207

Open
ChrisCatCP opened this issue Jul 22, 2021 · 1 comment
Open

lua引擎崩溃的bug #207

ChrisCatCP opened this issue Jul 22, 2021 · 1 comment

Comments

@ChrisCatCP
Copy link

lua引擎的jassbind.cpp中

		void             push_string(lua_State* L, jass::jstring_t value)
		{
			if (value < 0x10000) {
				value = get_jass_vm()->string_table->get(value);
			}
			lua_pushstring(L, jass::from_trigstring(jass::from_string(value)));
		}

这里判断的小于0x10000有问题 好像是为了兼容 全局变量读取? 索引大于0x10000会导致崩溃

@actboy168
Copy link
Owner

忘了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants