mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 01:52:17 +00:00
Fix ai.aspects table not containing string aspects
This commit is contained in:
parent
63bb076b97
commit
0ecae9de17
@ -782,6 +782,8 @@ static int impl_ai_aspect_get(lua_State* L)
|
||||
lua_pushinteger(L, aspect_as_int->get());
|
||||
} else if(typesafe_aspect<double>* aspect_as_double = try_aspect_as<double>(iter->second)) {
|
||||
lua_pushnumber(L, aspect_as_double->get());
|
||||
} else if(typesafe_aspect<std::string>* aspect_as_string = try_aspect_as<std::string>(iter->second)) {
|
||||
lua_pushstring(L, aspect_as_string->get().c_str());
|
||||
} else if(typesafe_aspect<config>* aspect_as_config = try_aspect_as<config>(iter->second)) {
|
||||
luaW_pushconfig(L, aspect_as_config->get());
|
||||
} else if(typesafe_aspect<string_list>* aspect_as_string_list = try_aspect_as<string_list>(iter->second)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user