diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-12-22 20:55:41 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-12-22 20:55:41 +0000 |
commit | 0c48ac69632ff6137d8f62d578e2f3dbc2d56ec2 (patch) | |
tree | a974002c602ba3447c90eda178a85d6cf1881e3e /plugins/MirLua | |
parent | 3531afa322dbea150016e40908c27a695b1bc624 (diff) |
MirLua:
- safety check
git-svn-id: http://svn.miranda-ng.org/main/trunk@15936 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua')
-rw-r--r-- | plugins/MirLua/src/m_schedule.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/MirLua/src/m_schedule.cpp b/plugins/MirLua/src/m_schedule.cpp index ca9a04e271..ce4e2ea8f9 100644 --- a/plugins/MirLua/src/m_schedule.cpp +++ b/plugins/MirLua/src/m_schedule.cpp @@ -377,7 +377,8 @@ static int lua__From(lua_State *L) lua_gettable(L, 1);
int interval = luaL_optinteger(L, -1, 1);
lua_pop(L, 1);
- startTime += (((timestamp - startTime) / interval) + 1) * interval;
+ if (interval > 0)
+ startTime += (((timestamp - startTime) / interval) + 1) * interval;
}
lua_pushvalue(L, 1);
|