syndromeTrigger: only complain once.

develop
expwnent 2013-04-07 13:22:38 -04:00
parent b057a0d82a
commit 1c78f06a1c
1 changed files with 3 additions and 1 deletions

@ -6,6 +6,7 @@
#include "PluginManager.h"
#include "modules/EventManager.h"
#include "modules/Once.h"
#include "df/caste_raw.h"
#include "df/creature_raw.h"
@ -37,6 +38,7 @@ void syndromeHandler(color_ostream& out, void* ptr) {
df::unit* unit = df::unit::find(data->unitId);
if (!unit) {
if ( DFHack::Once::doOnce("syndromeTrigger_no find unit" ) )
out.print("%s, line %d: couldn't find unit.\n", __FILE__, __LINE__);
return;
}