Page 1 of 1

lua_interface possible bug

Posted: Mon Aug 01, 2011 6:26 pm
by John Adams
Scat, in LuaInterface.cpp, Line 548, I came across what looks like a typo. I do not think this registration is correct, though I doubt it's breaking anything... GetRace() just won't work, I imagine?

Code: Select all

	lua_register(state, "GetMount", EQ2Emu_lua_GetMount);
	lua_register(state, "Ge", EQ2Emu_lua_GetRace);
	lua_register(state, "GetRaceName", EQ2Emu_lua_GetRaceName);
If you agree, I will finish typing GetRace in that second param :) Just wanted to run it passed you to be sure I wasn't overlooking something obvious.

Re: lua_interface possible bug

Posted: Mon Aug 01, 2011 7:16 pm
by Scatman
Heh, yep. It's registering the function "Ge()" into LUA. Nice catch :P