From c216ece72c1f278699f4a9f1e95aaf7f9dfeb146 Mon Sep 17 00:00:00 2001 From: Sorvani Date: Mon, 15 Jul 2013 00:35:46 -0500 Subject: [PATCH] fir for lua get_spawn_condition --- changelog.txt | 2 ++ zone/lua_general.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 8106e51d3..4392b157f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,7 @@ EQEMu Changelog (Started on Sept 24, 2003 15:50) ------------------------------------------------------- +== 07/15/2013 == +Sorvani: fix for lua_general.cpp funtion get_spawn_condition == 07/13/2013 == KLS: Added packet class and helper functions to Lua. diff --git a/zone/lua_general.cpp b/zone/lua_general.cpp index e5cfbb72c..22d3dd656 100644 --- a/zone/lua_general.cpp +++ b/zone/lua_general.cpp @@ -343,8 +343,8 @@ void lua_spawn_condition(const char *zone, uint32 instance_id, int condition_id, quest_manager.spawn_condition(zone, instance_id, condition_id, value); } -void lua_get_spawn_condition(const char *zone, uint32 instance_id, int condition_id) { - quest_manager.get_spawn_condition(zone, instance_id, condition_id); +int lua_get_spawn_condition(const char *zone, uint32 instance_id, int condition_id) { + return quest_manager.get_spawn_condition(zone, instance_id, condition_id); } void lua_toggle_spawn_event(int event_id, bool enable, bool reset) {